.class public Lcom/philzhu/www/ddz/GameScreen;
.super Lcom/philzhu/www/framework/Screen;
.source "GameScreen.java"

# interfaces
.implements Lcom/philzhu/www/framework/ButtonActionListener;


# annotations
.annotation system Ldalvik/annotation/MemberClasses;
    value = {
        Lcom/philzhu/www/ddz/GameScreen$GameState;
    }
.end annotation


# static fields
.field private static final CARDS_MARGIN_BOTTOM:I = 0x32


# instance fields
.field private baseScore:I

.field private cardOffset:F

.field cardsTouchZone:Landroid/graphics/Rect;

.field commonButtons:Ljava/util/Vector;
    .annotation system Ldalvik/annotation/Signature;
        value = {
            "Ljava/util/Vector",
            "<",
            "Lcom/philzhu/www/framework/impl/RButton;",
            ">;"
        }
    .end annotation
.end field

.field currentPressedButton:I

.field private delay:F

.field private downPlayerCardsNum:I

.field gameoverButtons:Ljava/util/Vector;
    .annotation system Ldalvik/annotation/Signature;
        value = {
            "Ljava/util/Vector",
            "<",
            "Lcom/philzhu/www/framework/impl/RButton;",
            ">;"
        }
    .end annotation
.end field

.field private lastIndex:I

.field private multiple:I

.field paint:Landroid/graphics/Paint;

.field private playerMWin:Z

.field runningButtons:Ljava/util/Vector;
    .annotation system Ldalvik/annotation/Signature;
        value = {
            "Ljava/util/Vector",
            "<",
            "Lcom/philzhu/www/framework/impl/RButton;",
            ">;"
        }
    .end annotation
.end field

.field public state:Lcom/philzhu/www/ddz/GameScreen$GameState;

.field private upPlayerCardsNum:I

.field world:Lcom/philzhu/www/ddz/World;


# direct methods
.method public constructor <init>(Lcom/philzhu/www/framework/Game;I)V
    .locals 2
    .parameter "game"
    .parameter "multiple"

    .prologue
    const/4 v1, 0x0

    .line 53
    invoke-direct {p0, p1}, Lcom/philzhu/www/framework/Screen;-><init>(Lcom/philzhu/www/framework/Game;)V

    .line 30
    iput v1, p0, Lcom/philzhu/www/ddz/GameScreen;->currentPressedButton:I

    .line 32
    sget-object v0, Lcom/philzhu/www/ddz/GameScreen$GameState;->Running:Lcom/philzhu/www/ddz/GameScreen$GameState;

    iput-object v0, p0, Lcom/philzhu/www/ddz/GameScreen;->state:Lcom/philzhu/www/ddz/GameScreen$GameState;

    .line 34
    new-instance v0, Ljava/util/Vector;

    invoke-direct {v0}, Ljava/util/Vector;-><init>()V

    iput-object v0, p0, Lcom/philzhu/www/ddz/GameScreen;->runningButtons:Ljava/util/Vector;

    .line 35
    new-instance v0, Ljava/util/Vector;

    invoke-direct {v0}, Ljava/util/Vector;-><init>()V

    iput-object v0, p0, Lcom/philzhu/www/ddz/GameScreen;->gameoverButtons:Ljava/util/Vector;

    .line 36
    new-instance v0, Ljava/util/Vector;

    invoke-direct {v0}, Ljava/util/Vector;-><init>()V

    iput-object v0, p0, Lcom/philzhu/www/ddz/GameScreen;->commonButtons:Ljava/util/Vector;

    .line 37
    new-instance v0, Landroid/graphics/Rect;

    invoke-direct {v0}, Landroid/graphics/Rect;-><init>()V

    iput-object v0, p0, Lcom/philzhu/www/ddz/GameScreen;->cardsTouchZone:Landroid/graphics/Rect;

    .line 39
    const/4 v0, -0x1

    iput v0, p0, Lcom/philzhu/www/ddz/GameScreen;->lastIndex:I

    .line 41
    iput v1, p0, Lcom/philzhu/www/ddz/GameScreen;->upPlayerCardsNum:I

    .line 42
    iput v1, p0, Lcom/philzhu/www/ddz/GameScreen;->downPlayerCardsNum:I

    .line 44
    iput v1, p0, Lcom/philzhu/www/ddz/GameScreen;->baseScore:I

    .line 45
    iput-boolean v1, p0, Lcom/philzhu/www/ddz/GameScreen;->playerMWin:Z

    .line 47
    new-instance v0, Landroid/graphics/Paint;

    invoke-direct {v0}, Landroid/graphics/Paint;-><init>()V

    iput-object v0, p0, Lcom/philzhu/www/ddz/GameScreen;->paint:Landroid/graphics/Paint;

    .line 54
    const/4 v0, 0x2

    iput v0, p0, Lcom/philzhu/www/ddz/GameScreen;->screenType:I

    .line 55
    iput p2, p0, Lcom/philzhu/www/ddz/GameScreen;->multiple:I

    .line 56
    new-instance v0, Lcom/philzhu/www/ddz/World;

    invoke-direct {v0}, Lcom/philzhu/www/ddz/World;-><init>()V

    iput-object v0, p0, Lcom/philzhu/www/ddz/GameScreen;->world:Lcom/philzhu/www/ddz/World;

    .line 57
    invoke-direct {p0}, Lcom/philzhu/www/ddz/GameScreen;->initButtons()V

    .line 58
    return-void
.end method

.method private drawBackLittleCards(Lcom/philzhu/www/framework/Graphics;III)V
    .locals 9
    .parameter "g"
    .parameter "x"
    .parameter "y"
    .parameter "cardsNum"

    .prologue
    .line 467
    const/4 v6, 0x0

    .local v6, i:I
    :goto_0
    if-lt v6, p4, :cond_0

    .line 473
    return-void

    .line 469
    :cond_0
    rem-int/lit8 v7, v6, 0x2

    .line 470
    .local v7, offsetX:I
    div-int/lit8 v8, v6, 0x2

    .line 471
    .local v8, offsetY:I
    sget-object v1, Lcom/philzhu/www/ddz/Assets;->cardBack:Lcom/philzhu/www/framework/Pixmap;

    mul-int/lit8 v0, v7, 0x19

    add-int v2, p2, v0

    mul-int/lit8 v0, v8, 0x8

    add-int v3, p3, v0

    const/16 v4, 0x23

    const/16 v5, 0x30

    move-object v0, p1

    invoke-interface/range {v0 .. v5}, Lcom/philzhu/www/framework/Graphics;->drawPixmap(Lcom/philzhu/www/framework/Pixmap;IIII)V

    .line 467
    add-int/lit8 v6, v6, 0x1

    goto :goto_0
.end method

.method private drawBottomCards(Lcom/philzhu/www/framework/Graphics;)V
    .locals 10
    .parameter "g"

    .prologue
    const/4 v9, 0x3

    .line 1123
    iget-object v0, p0, Lcom/philzhu/www/ddz/GameScreen;->world:Lcom/philzhu/www/ddz/World;

    iget-object v0, v0, Lcom/philzhu/www/ddz/World;->status:Lcom/philzhu/www/ddz/World$Status;

    sget-object v1, Lcom/philzhu/www/ddz/World$Status;->Call:Lcom/philzhu/www/ddz/World$Status;

    if-ne v0, v1, :cond_2

    .line 1125
    sget-object v0, Lcom/philzhu/www/ddz/Assets;->cardBack:Lcom/philzhu/www/framework/Pixmap;

    invoke-interface {v0}, Lcom/philzhu/www/framework/Pixmap;->getRawWidth()I

    move-result v0

    add-int/lit8 v8, v0, 0x5

    .line 1126
    .local v8, offset:I
    const/4 v7, 0x0

    .local v7, i:I
    :goto_0
    if-lt v7, v9, :cond_1

    .line 1140
    .end local v7           #i:I
    .end local v8           #offset:I
    :cond_0
    return-void

    .line 1128
    .restart local v7       #i:I
    .restart local v8       #offset:I
    :cond_1
    sget-object v0, Lcom/philzhu/www/ddz/Assets;->cardBack:Lcom/philzhu/www/framework/Pixmap;

    mul-int v1, v7, v8

    add-int/lit16 v1, v1, 0x122

    const/16 v2, 0x73

    invoke-interface {p1, v0, v1, v2}, Lcom/philzhu/www/framework/Graphics;->drawPixmap(Lcom/philzhu/www/framework/Pixmap;II)V

    .line 1126
    add-int/lit8 v7, v7, 0x1

    goto :goto_0

    .line 1131
    .end local v7           #i:I
    .end local v8           #offset:I
    :cond_2
    iget-object v0, p0, Lcom/philzhu/www/ddz/GameScreen;->world:Lcom/philzhu/www/ddz/World;

    iget-object v0, v0, Lcom/philzhu/www/ddz/World;->status:Lcom/philzhu/www/ddz/World$Status;

    sget-object v1, Lcom/philzhu/www/ddz/World$Status;->Playing:Lcom/philzhu/www/ddz/World$Status;

    if-ne v0, v1, :cond_0

    .line 1133
    const/16 v8, 0x21

    .line 1134
    .restart local v8       #offset:I
    const/4 v7, 0x0

    .restart local v7       #i:I
    :goto_1
    if-ge v7, v9, :cond_0

    .line 1136
    iget-object v0, p0, Lcom/philzhu/www/ddz/GameScreen;->world:Lcom/philzhu/www/ddz/World;

    iget-object v0, v0, Lcom/philzhu/www/ddz/World;->bottomCards:Ljava/util/Vector;

    invoke-virtual {v0, v7}, Ljava/util/Vector;->elementAt(I)Ljava/lang/Object;

    move-result-object v6

    check-cast v6, Lcom/philzhu/www/ddz/Card;

    .line 1137
    .local v6, card:Lcom/philzhu/www/ddz/Card;
    invoke-direct {p0, v6}, Lcom/philzhu/www/ddz/GameScreen;->getSmallCardPixmap(Lcom/philzhu/www/ddz/Card;)Lcom/philzhu/www/framework/Pixmap;

    move-result-object v1

    mul-int v0, v7, v8

    add-int/lit16 v2, v0, 0x160

    const/4 v3, 0x5

    const/16 v4, 0x1e

    const/16 v5, 0x28

    move-object v0, p1

    invoke-interface/range {v0 .. v5}, Lcom/philzhu/www/framework/Graphics;->drawPixmap(Lcom/philzhu/www/framework/Pixmap;IIII)V

    .line 1134
    add-int/lit8 v7, v7, 0x1

    goto :goto_1
.end method

.method private drawDialogMessage(Lcom/philzhu/www/framework/Graphics;)V
    .locals 13
    .parameter "g"

    .prologue
    const/16 v9, 0x320

    const/16 v7, 0xa

    const/4 v5, 0x1

    const/4 v11, 0x0

    .line 842
    iget-object v0, p0, Lcom/philzhu/www/ddz/GameScreen;->world:Lcom/philzhu/www/ddz/World;

    iget-object v2, v0, Lcom/philzhu/www/ddz/World;->playerU:Lcom/philzhu/www/ddz/Player;

    .line 843
    .local v2, playerU:Lcom/philzhu/www/ddz/Player;
    iget-object v0, p0, Lcom/philzhu/www/ddz/GameScreen;->world:Lcom/philzhu/www/ddz/World;

    iget-object v8, v0, Lcom/philzhu/www/ddz/World;->playerD:Lcom/philzhu/www/ddz/Player;

    .line 845
    .local v8, playerD:Lcom/philzhu/www/ddz/Player;
    iget-object v0, p0, Lcom/philzhu/www/ddz/GameScreen;->world:Lcom/philzhu/www/ddz/World;

    iget-object v0, v0, Lcom/philzhu/www/ddz/World;->status:Lcom/philzhu/www/ddz/World$Status;

    sget-object v1, Lcom/philzhu/www/ddz/World$Status;->Call:Lcom/philzhu/www/ddz/World$Status;

    if-ne v0, v1, :cond_2

    .line 847
    iget-boolean v0, v2, Lcom/philzhu/www/ddz/Player;->isCalling:Z

    if-eqz v0, :cond_0

    .line 849
    sget-object v0, Lcom/philzhu/www/ddz/Assets;->playerU:Lcom/philzhu/www/framework/Pixmap;

    invoke-interface {v0}, Lcom/philzhu/www/framework/Pixmap;->getRawWidth()I

    move-result v0

    add-int/lit8 v3, v0, 0xa

    .line 850
    .local v3, x:I
    const/16 v4, 0xa

    .local v4, y:I
    move-object v0, p0

    move-object v1, p1

    move v6, v5

    .line 851
    invoke-direct/range {v0 .. v6}, Lcom/philzhu/www/ddz/GameScreen;->drawDialogMessageByStatus(Lcom/philzhu/www/framework/Graphics;Lcom/philzhu/www/ddz/Player;IIZZ)V

    .line 853
    .end local v3           #x:I
    .end local v4           #y:I
    :cond_0
    iget-boolean v0, v8, Lcom/philzhu/www/ddz/Player;->isCalling:Z

    if-eqz v0, :cond_1

    .line 855
    sget-object v0, Lcom/philzhu/www/ddz/Assets;->playerD:Lcom/philzhu/www/framework/Pixmap;

    invoke-interface {v0}, Lcom/philzhu/www/framework/Pixmap;->getRawWidth()I

    move-result v0

    sub-int v0, v9, v0

    sget-object v1, Lcom/philzhu/www/ddz/Assets;->dialogRight:Lcom/philzhu/www/framework/Pixmap;

    invoke-interface {v1}, Lcom/philzhu/www/framework/Pixmap;->getRawWidth()I

    move-result v1

    sub-int/2addr v0, v1

    sub-int v3, v0, v7

    .line 856
    .restart local v3       #x:I
    const/16 v4, 0xa

    .restart local v4       #y:I
    move-object v6, p0

    move-object v7, p1

    move v9, v3

    move v10, v4

    move v12, v5

    .line 857
    invoke-direct/range {v6 .. v12}, Lcom/philzhu/www/ddz/GameScreen;->drawDialogMessageByStatus(Lcom/philzhu/www/framework/Graphics;Lcom/philzhu/www/ddz/Player;IIZZ)V

    .line 875
    .end local v3           #x:I
    .end local v4           #y:I
    :cond_1
    :goto_0
    return-void

    .line 860
    :cond_2
    iget-object v0, p0, Lcom/philzhu/www/ddz/GameScreen;->world:Lcom/philzhu/www/ddz/World;

    iget-object v0, v0, Lcom/philzhu/www/ddz/World;->status:Lcom/philzhu/www/ddz/World$Status;

    sget-object v1, Lcom/philzhu/www/ddz/World$Status;->Playing:Lcom/philzhu/www/ddz/World$Status;

    if-ne v0, v1, :cond_1

    .line 862
    iget-boolean v0, v2, Lcom/philzhu/www/ddz/Player;->isOutCarding:Z

    if-eqz v0, :cond_3

    .line 864
    sget-object v0, Lcom/philzhu/www/ddz/Assets;->playerU:Lcom/philzhu/www/framework/Pixmap;

    invoke-interface {v0}, Lcom/philzhu/www/framework/Pixmap;->getRawWidth()I

    move-result v0

    add-int/lit8 v3, v0, 0xa

    .line 865
    .restart local v3       #x:I
    const/16 v4, 0xa

    .restart local v4       #y:I
    move-object v0, p0

    move-object v1, p1

    move v6, v11

    .line 866
    invoke-direct/range {v0 .. v6}, Lcom/philzhu/www/ddz/GameScreen;->drawDialogMessageByStatus(Lcom/philzhu/www/framework/Graphics;Lcom/philzhu/www/ddz/Player;IIZZ)V

    .line 868
    .end local v3           #x:I
    .end local v4           #y:I
    :cond_3
    iget-boolean v0, v8, Lcom/philzhu/www/ddz/Player;->isOutCarding:Z

    if-eqz v0, :cond_1

    .line 870
    sget-object v0, Lcom/philzhu/www/ddz/Assets;->playerD:Lcom/philzhu/www/framework/Pixmap;

    invoke-interface {v0}, Lcom/philzhu/www/framework/Pixmap;->getRawWidth()I

    move-result v0

    sub-int v0, v9, v0

    sget-object v1, Lcom/philzhu/www/ddz/Assets;->dialogRight:Lcom/philzhu/www/framework/Pixmap;

    invoke-interface {v1}, Lcom/philzhu/www/framework/Pixmap;->getRawWidth()I

    move-result v1

    sub-int/2addr v0, v1

    sub-int v3, v0, v7

    .line 871
    .restart local v3       #x:I
    const/16 v4, 0xa

    .restart local v4       #y:I
    move-object v6, p0

    move-object v7, p1

    move v9, v3

    move v10, v4

    move v12, v11

    .line 872
    invoke-direct/range {v6 .. v12}, Lcom/philzhu/www/ddz/GameScreen;->drawDialogMessageByStatus(Lcom/philzhu/www/framework/Graphics;Lcom/philzhu/www/ddz/Player;IIZZ)V

    goto :goto_0
.end method

.method private drawDialogMessageByStatus(Lcom/philzhu/www/framework/Graphics;Lcom/philzhu/www/ddz/Player;IIZZ)V
    .locals 4
    .parameter "g"
    .parameter "player"
    .parameter "x"
    .parameter "y"
    .parameter "isLeftDialog"
    .parameter "isCalling"

    .prologue
    const/4 v3, 0x5

    .line 880
    if-eqz p5, :cond_1

    .line 882
    sget-object v0, Lcom/philzhu/www/ddz/Assets;->dialogLeft:Lcom/philzhu/www/framework/Pixmap;

    .line 889
    .local v0, dialog:Lcom/philzhu/www/framework/Pixmap;
    :goto_0
    if-eqz p6, :cond_5

    .line 891
    invoke-interface {p1, v0, p3, p4}, Lcom/philzhu/www/framework/Graphics;->drawPixmap(Lcom/philzhu/www/framework/Pixmap;II)V

    .line 892
    iget v1, p2, Lcom/philzhu/www/ddz/Player;->grade:I

    const/4 v2, 0x1

    if-ne v1, v2, :cond_2

    .line 894
    sget-object v1, Lcom/philzhu/www/ddz/Assets;->dialogSOne:Lcom/philzhu/www/framework/Pixmap;

    int-to-float v2, p3

    sub-int v3, p4, v3

    int-to-float v3, v3

    invoke-interface {p1, v0, v2, v3}, Lcom/philzhu/www/framework/Graphics;->getCenter(Lcom/philzhu/www/framework/Pixmap;FF)Landroid/graphics/Point;

    move-result-object v2

    invoke-interface {p1, v1, v2}, Lcom/philzhu/www/framework/Graphics;->drawPixmapInParentCenter(Lcom/philzhu/www/framework/Pixmap;Landroid/graphics/Point;)V

    .line 917
    :cond_0
    :goto_1
    return-void

    .line 886
    .end local v0           #dialog:Lcom/philzhu/www/framework/Pixmap;
    :cond_1
    sget-object v0, Lcom/philzhu/www/ddz/Assets;->dialogRight:Lcom/philzhu/www/framework/Pixmap;

    .restart local v0       #dialog:Lcom/philzhu/www/framework/Pixmap;
    goto :goto_0

    .line 896
    :cond_2
    iget v1, p2, Lcom/philzhu/www/ddz/Player;->grade:I

    const/4 v2, 0x2

    if-ne v1, v2, :cond_3

    .line 898
    sget-object v1, Lcom/philzhu/www/ddz/Assets;->dialogSTwo:Lcom/philzhu/www/framework/Pixmap;

    int-to-float v2, p3

    sub-int v3, p4, v3

    int-to-float v3, v3

    invoke-interface {p1, v0, v2, v3}, Lcom/philzhu/www/framework/Graphics;->getCenter(Lcom/philzhu/www/framework/Pixmap;FF)Landroid/graphics/Point;

    move-result-object v2

    invoke-interface {p1, v1, v2}, Lcom/philzhu/www/framework/Graphics;->drawPixmapInParentCenter(Lcom/philzhu/www/framework/Pixmap;Landroid/graphics/Point;)V

    goto :goto_1

    .line 900
    :cond_3
    iget v1, p2, Lcom/philzhu/www/ddz/Player;->grade:I

    const/4 v2, 0x3

    if-ne v1, v2, :cond_4

    .line 902
    sget-object v1, Lcom/philzhu/www/ddz/Assets;->dialogSThree:Lcom/philzhu/www/framework/Pixmap;

    int-to-float v2, p3

    sub-int v3, p4, v3

    int-to-float v3, v3

    invoke-interface {p1, v0, v2, v3}, Lcom/philzhu/www/framework/Graphics;->getCenter(Lcom/philzhu/www/framework/Pixmap;FF)Landroid/graphics/Point;

    move-result-object v2

    invoke-interface {p1, v1, v2}, Lcom/philzhu/www/framework/Graphics;->drawPixmapInParentCenter(Lcom/philzhu/www/framework/Pixmap;Landroid/graphics/Point;)V

    goto :goto_1

    .line 906
    :cond_4
    sget-object v1, Lcom/philzhu/www/ddz/Assets;->dialogSFold:Lcom/philzhu/www/framework/Pixmap;

    int-to-float v2, p3

    sub-int v3, p4, v3

    int-to-float v3, v3

    invoke-interface {p1, v0, v2, v3}, Lcom/philzhu/www/framework/Graphics;->getCenter(Lcom/philzhu/www/framework/Pixmap;FF)Landroid/graphics/Point;

    move-result-object v2

    invoke-interface {p1, v1, v2}, Lcom/philzhu/www/framework/Graphics;->drawPixmapInParentCenter(Lcom/philzhu/www/framework/Pixmap;Landroid/graphics/Point;)V

    goto :goto_1

    .line 911
    :cond_5
    invoke-virtual {p2}, Lcom/philzhu/www/ddz/Player;->getOutCards()Ljava/util/Vector;

    move-result-object v1

    if-eqz v1, :cond_6

    invoke-virtual {p2}, Lcom/philzhu/www/ddz/Player;->getOutCards()Ljava/util/Vector;

    move-result-object v1

    invoke-virtual {v1}, Ljava/util/Vector;->size()I

    move-result v1

    if-nez v1, :cond_0

    .line 913
    :cond_6
    invoke-interface {p1, v0, p3, p4}, Lcom/philzhu/www/framework/Graphics;->drawPixmap(Lcom/philzhu/www/framework/Pixmap;II)V

    .line 914
    sget-object v1, Lcom/philzhu/www/ddz/Assets;->dialogSPass:Lcom/philzhu/www/framework/Pixmap;

    int-to-float v2, p3

    sub-int v3, p4, v3

    int-to-float v3, v3

    invoke-interface {p1, v0, v2, v3}, Lcom/philzhu/www/framework/Graphics;->getCenter(Lcom/philzhu/www/framework/Pixmap;FF)Landroid/graphics/Point;

    move-result-object v2

    invoke-interface {p1, v1, v2}, Lcom/philzhu/www/framework/Graphics;->drawPixmapInParentCenter(Lcom/philzhu/www/framework/Pixmap;Landroid/graphics/Point;)V

    goto :goto_1
.end method

.method private drawExp(Lcom/philzhu/www/framework/Graphics;)V
    .locals 8
    .parameter "g"

    .prologue
    const/4 v4, 0x0

    .line 835
    sget-object v0, Lcom/philzhu/www/ddz/Assets;->levelProcessBack:Lcom/philzhu/www/framework/Pixmap;

    const/16 v1, 0x154

    const/16 v2, 0x9b

    invoke-interface {p1, v0, v1, v2}, Lcom/philzhu/www/framework/Graphics;->drawPixmap(Lcom/philzhu/www/framework/Pixmap;II)V

    .line 836
    sget-object v0, Lcom/philzhu/www/ddz/Assets;->levelProcess:Lcom/philzhu/www/framework/Pixmap;

    invoke-interface {v0}, Lcom/philzhu/www/framework/Pixmap;->getRawWidth()I

    move-result v0

    sget v1, Lcom/philzhu/www/ddz/Settings;->exp:I

    mul-int/2addr v0, v1

    div-int/lit8 v0, v0, 0x19

    int-to-float v0, v0

    const/high16 v1, 0x3f00

    add-float/2addr v0, v1

    float-to-int v6, v0

    .line 837
    .local v6, expBarLength:I
    sget-object v1, Lcom/philzhu/www/ddz/Assets;->levelProcess:Lcom/philzhu/www/framework/Pixmap;

    const/16 v2, 0x157

    const/16 v3, 0x9d

    sget-object v0, Lcom/philzhu/www/ddz/Assets;->levelProcess:Lcom/philzhu/www/framework/Pixmap;

    invoke-interface {v0}, Lcom/philzhu/www/framework/Pixmap;->getRawHeight()I

    move-result v7

    move-object v0, p1

    move v5, v4

    invoke-interface/range {v0 .. v7}, Lcom/philzhu/www/framework/Graphics;->drawPixmap(Lcom/philzhu/www/framework/Pixmap;IIIIII)V

    .line 838
    return-void
.end method

.method private drawGameOverUI()V
    .locals 14

    .prologue
    const/16 v13, 0x6e

    const/16 v12, 0xe6

    const/4 v11, 0x5

    const/4 v10, 0x0

    const/16 v9, 0xdc

    .line 602
    iget-object v6, p0, Lcom/philzhu/www/ddz/GameScreen;->game:Lcom/philzhu/www/framework/Game;

    invoke-interface {v6}, Lcom/philzhu/www/framework/Game;->getGraphics()Lcom/philzhu/www/framework/Graphics;

    move-result-object v2

    .line 604
    .local v2, g:Lcom/philzhu/www/framework/Graphics;
    sget-object v6, Lcom/philzhu/www/ddz/Assets;->backgroundGame:Lcom/philzhu/www/framework/Pixmap;

    invoke-interface {v2, v6, v10, v10}, Lcom/philzhu/www/framework/Graphics;->drawPixmap(Lcom/philzhu/www/framework/Pixmap;II)V

    .line 605
    sget-object v6, Lcom/philzhu/www/ddz/Assets;->banner:Lcom/philzhu/www/framework/Pixmap;

    const/16 v7, 0x320

    sget-object v8, Lcom/philzhu/www/ddz/Assets;->banner:Lcom/philzhu/www/framework/Pixmap;

    invoke-interface {v8}, Lcom/philzhu/www/framework/Pixmap;->getRawWidth()I

    move-result v8

    sub-int/2addr v7, v8

    div-int/lit8 v7, v7, 0x2

    invoke-interface {v2, v6, v7, v10}, Lcom/philzhu/www/framework/Graphics;->drawPixmap(Lcom/philzhu/www/framework/Pixmap;II)V

    .line 608
    iget-object v6, p0, Lcom/philzhu/www/ddz/GameScreen;->commonButtons:Ljava/util/Vector;

    invoke-virtual {v6}, Ljava/util/Vector;->size()I

    move-result v1

    .line 609
    .local v1, commonButtonSize:I
    const/4 v3, 0x0

    .local v3, j:I
    :goto_0
    if-lt v3, v1, :cond_1

    .line 618
    const/16 v6, 0x320

    sget-object v7, Lcom/philzhu/www/ddz/Assets;->backgroundScore:Lcom/philzhu/www/framework/Pixmap;

    invoke-interface {v7}, Lcom/philzhu/www/framework/Pixmap;->getRawWidth()I

    move-result v7

    sub-int/2addr v6, v7

    div-int/lit8 v4, v6, 0x2

    .line 619
    .local v4, scoreInfoX:I
    const/16 v5, 0x46

    .line 620
    .local v5, scoreInfoY:I
    sget-object v6, Lcom/philzhu/www/ddz/Assets;->backgroundScore:Lcom/philzhu/www/framework/Pixmap;

    invoke-interface {v2, v6, v4, v5}, Lcom/philzhu/www/framework/Graphics;->drawPixmap(Lcom/philzhu/www/framework/Pixmap;II)V

    .line 621
    sget-object v6, Lcom/philzhu/www/ddz/Assets;->scoreInfo:Lcom/philzhu/www/framework/Pixmap;

    invoke-interface {v2, v6, v4, v5}, Lcom/philzhu/www/framework/Graphics;->drawPixmap(Lcom/philzhu/www/framework/Pixmap;II)V

    .line 622
    new-instance v6, Ljava/lang/StringBuilder;

    invoke-direct {v6}, Ljava/lang/StringBuilder;-><init>()V

    iget-object v7, p0, Lcom/philzhu/www/ddz/GameScreen;->world:Lcom/philzhu/www/ddz/World;

    iget v7, v7, Lcom/philzhu/www/ddz/World;->grade:I

    invoke-virtual {v6, v7}, Ljava/lang/StringBuilder;->append(I)Ljava/lang/StringBuilder;

    move-result-object v6

    invoke-virtual {v6}, Ljava/lang/StringBuilder;->toString()Ljava/lang/String;

    move-result-object v6

    add-int/lit8 v7, v4, 0x46

    add-int/lit8 v8, v5, 0xc

    invoke-virtual {p0, v2, v6, v7, v8}, Lcom/philzhu/www/ddz/GameScreen;->drawScore(Lcom/philzhu/www/framework/Graphics;Ljava/lang/String;II)V

    .line 623
    new-instance v6, Ljava/lang/StringBuilder;

    invoke-direct {v6}, Ljava/lang/StringBuilder;-><init>()V

    iget-object v7, p0, Lcom/philzhu/www/ddz/GameScreen;->world:Lcom/philzhu/www/ddz/World;

    iget v7, v7, Lcom/philzhu/www/ddz/World;->zhaNum:I

    invoke-virtual {v6, v7}, Ljava/lang/StringBuilder;->append(I)Ljava/lang/StringBuilder;

    move-result-object v6

    invoke-virtual {v6}, Ljava/lang/StringBuilder;->toString()Ljava/lang/String;

    move-result-object v6

    add-int/lit16 v7, v4, 0x8c

    add-int/lit8 v8, v5, 0xc

    invoke-virtual {p0, v2, v6, v7, v8}, Lcom/philzhu/www/ddz/GameScreen;->drawScore(Lcom/philzhu/www/framework/Graphics;Ljava/lang/String;II)V

    .line 626
    sget-object v6, Lcom/philzhu/www/ddz/Assets;->backgroundInfo:Lcom/philzhu/www/framework/Pixmap;

    invoke-interface {v2, v6, v9, v13}, Lcom/philzhu/www/framework/Graphics;->drawPixmap(Lcom/philzhu/www/framework/Pixmap;II)V

    .line 627
    sget-object v6, Lcom/philzhu/www/ddz/Assets;->playerM:Lcom/philzhu/www/framework/Pixmap;

    const/16 v7, 0x64

    invoke-interface {v2, v6, v12, v7}, Lcom/philzhu/www/framework/Graphics;->drawPixmap(Lcom/philzhu/www/framework/Pixmap;II)V

    .line 629
    sget-object v6, Lcom/philzhu/www/ddz/Assets;->backgroundInfo:Lcom/philzhu/www/framework/Pixmap;

    const/16 v7, 0xc8

    invoke-interface {v2, v6, v9, v7}, Lcom/philzhu/www/framework/Graphics;->drawPixmap(Lcom/philzhu/www/framework/Pixmap;II)V

    .line 630
    sget-object v6, Lcom/philzhu/www/ddz/Assets;->playerU:Lcom/philzhu/www/framework/Pixmap;

    const/16 v7, 0xbe

    invoke-interface {v2, v6, v12, v7}, Lcom/philzhu/www/framework/Graphics;->drawPixmap(Lcom/philzhu/www/framework/Pixmap;II)V

    .line 632
    sget-object v6, Lcom/philzhu/www/ddz/Assets;->backgroundInfo:Lcom/philzhu/www/framework/Pixmap;

    const/16 v7, 0x122

    invoke-interface {v2, v6, v9, v7}, Lcom/philzhu/www/framework/Graphics;->drawPixmap(Lcom/philzhu/www/framework/Pixmap;II)V

    .line 633
    sget-object v6, Lcom/philzhu/www/ddz/Assets;->playerD:Lcom/philzhu/www/framework/Pixmap;

    const/16 v7, 0x118

    invoke-interface {v2, v6, v12, v7}, Lcom/philzhu/www/framework/Graphics;->drawPixmap(Lcom/philzhu/www/framework/Pixmap;II)V

    .line 636
    iget-object v6, p0, Lcom/philzhu/www/ddz/GameScreen;->world:Lcom/philzhu/www/ddz/World;

    iget v6, v6, Lcom/philzhu/www/ddz/World;->dizhuIndex:I

    const/4 v7, 0x1

    if-ne v6, v7, :cond_3

    .line 638
    sget-object v6, Lcom/philzhu/www/ddz/Assets;->gameoverDizhu:Lcom/philzhu/www/framework/Pixmap;

    sget-object v7, Lcom/philzhu/www/ddz/Assets;->gameoverDizhu:Lcom/philzhu/www/framework/Pixmap;

    invoke-interface {v7}, Lcom/philzhu/www/framework/Pixmap;->getRawWidth()I

    move-result v7

    sub-int v7, v9, v7

    sub-int/2addr v7, v11

    invoke-interface {v2, v6, v7, v13}, Lcom/philzhu/www/framework/Graphics;->drawPixmap(Lcom/philzhu/www/framework/Pixmap;II)V

    .line 650
    :goto_1
    invoke-direct {p0, v2}, Lcom/philzhu/www/ddz/GameScreen;->drawWinOrLose(Lcom/philzhu/www/framework/Graphics;)V

    .line 653
    new-instance v6, Ljava/lang/StringBuilder;

    invoke-direct {v6}, Ljava/lang/StringBuilder;-><init>()V

    sget v7, Lcom/philzhu/www/ddz/Settings;->score:I

    invoke-virtual {v6, v7}, Ljava/lang/StringBuilder;->append(I)Ljava/lang/StringBuilder;

    move-result-object v6

    invoke-virtual {v6}, Ljava/lang/StringBuilder;->toString()Ljava/lang/String;

    move-result-object v6

    const/16 v7, 0x140

    const/16 v8, 0x7d

    invoke-virtual {p0, v2, v6, v7, v8}, Lcom/philzhu/www/ddz/GameScreen;->drawScore(Lcom/philzhu/www/framework/Graphics;Ljava/lang/String;II)V

    .line 654
    new-instance v6, Ljava/lang/StringBuilder;

    invoke-direct {v6}, Ljava/lang/StringBuilder;-><init>()V

    sget v7, Lcom/philzhu/www/ddz/Settings;->level:I

    invoke-virtual {v6, v7}, Ljava/lang/StringBuilder;->append(I)Ljava/lang/StringBuilder;

    move-result-object v6

    invoke-virtual {v6}, Ljava/lang/StringBuilder;->toString()Ljava/lang/String;

    move-result-object v6

    const/16 v7, 0x140

    const/16 v8, 0x96

    invoke-virtual {p0, v2, v6, v7, v8}, Lcom/philzhu/www/ddz/GameScreen;->drawScore(Lcom/philzhu/www/framework/Graphics;Ljava/lang/String;II)V

    .line 655
    sget v6, Lcom/philzhu/www/ddz/Settings;->score:I

    if-gez v6, :cond_0

    .line 657
    sget-object v6, Lcom/philzhu/www/ddz/Assets;->minus:Lcom/philzhu/www/framework/Pixmap;

    const/16 v7, 0x139

    const/16 v8, 0x7b

    invoke-interface {v2, v6, v7, v8}, Lcom/philzhu/www/framework/Graphics;->drawPixmap(Lcom/philzhu/www/framework/Pixmap;II)V

    .line 661
    :cond_0
    invoke-direct {p0, v2}, Lcom/philzhu/www/ddz/GameScreen;->drawExp(Lcom/philzhu/www/framework/Graphics;)V

    .line 664
    iget-object v6, p0, Lcom/philzhu/www/ddz/GameScreen;->gameoverButtons:Ljava/util/Vector;

    invoke-virtual {v6}, Ljava/util/Vector;->size()I

    move-result v0

    .line 665
    .local v0, buttonSize:I
    const/4 v3, 0x0

    :goto_2
    if-lt v3, v0, :cond_5

    .line 669
    return-void

    .line 611
    .end local v0           #buttonSize:I
    .end local v4           #scoreInfoX:I
    .end local v5           #scoreInfoY:I
    :cond_1
    iget-object v6, p0, Lcom/philzhu/www/ddz/GameScreen;->commonButtons:Ljava/util/Vector;

    invoke-virtual {v6, v3}, Ljava/util/Vector;->elementAt(I)Ljava/lang/Object;

    move-result-object v6

    check-cast v6, Lcom/philzhu/www/framework/impl/RButton;

    iget-boolean v6, v6, Lcom/philzhu/www/framework/impl/RButton;->isVisible:Z

    if-eqz v6, :cond_2

    .line 613
    iget-object v6, p0, Lcom/philzhu/www/ddz/GameScreen;->commonButtons:Ljava/util/Vector;

    invoke-virtual {v6, v3}, Ljava/util/Vector;->elementAt(I)Ljava/lang/Object;

    move-result-object v6

    check-cast v6, Lcom/philzhu/www/framework/impl/RButton;

    invoke-virtual {v6, v2}, Lcom/philzhu/www/framework/impl/RButton;->drawMe(Lcom/philzhu/www/framework/Graphics;)V

    .line 609
    :cond_2
    add-int/lit8 v3, v3, 0x1

    goto/16 :goto_0

    .line 640
    .restart local v4       #scoreInfoX:I
    .restart local v5       #scoreInfoY:I
    :cond_3
    iget-object v6, p0, Lcom/philzhu/www/ddz/GameScreen;->world:Lcom/philzhu/www/ddz/World;

    iget v6, v6, Lcom/philzhu/www/ddz/World;->dizhuIndex:I

    const/4 v7, 0x2

    if-ne v6, v7, :cond_4

    .line 642
    sget-object v6, Lcom/philzhu/www/ddz/Assets;->gameoverDizhu:Lcom/philzhu/www/framework/Pixmap;

    sget-object v7, Lcom/philzhu/www/ddz/Assets;->gameoverDizhu:Lcom/philzhu/www/framework/Pixmap;

    invoke-interface {v7}, Lcom/philzhu/www/framework/Pixmap;->getRawWidth()I

    move-result v7

    sub-int v7, v9, v7

    sub-int/2addr v7, v11

    const/16 v8, 0xc8

    invoke-interface {v2, v6, v7, v8}, Lcom/philzhu/www/framework/Graphics;->drawPixmap(Lcom/philzhu/www/framework/Pixmap;II)V

    goto :goto_1

    .line 646
    :cond_4
    sget-object v6, Lcom/philzhu/www/ddz/Assets;->gameoverDizhu:Lcom/philzhu/www/framework/Pixmap;

    sget-object v7, Lcom/philzhu/www/ddz/Assets;->gameoverDizhu:Lcom/philzhu/www/framework/Pixmap;

    invoke-interface {v7}, Lcom/philzhu/www/framework/Pixmap;->getRawWidth()I

    move-result v7

    sub-int v7, v9, v7

    sub-int/2addr v7, v11

    const/16 v8, 0x122

    invoke-interface {v2, v6, v7, v8}, Lcom/philzhu/www/framework/Graphics;->drawPixmap(Lcom/philzhu/www/framework/Pixmap;II)V

    goto/16 :goto_1

    .line 667
    .restart local v0       #buttonSize:I
    :cond_5
    iget-object v6, p0, Lcom/philzhu/www/ddz/GameScreen;->gameoverButtons:Ljava/util/Vector;

    invoke-virtual {v6, v3}, Ljava/util/Vector;->elementAt(I)Ljava/lang/Object;

    move-result-object v6

    check-cast v6, Lcom/philzhu/www/framework/impl/RButton;

    invoke-virtual {v6, v2}, Lcom/philzhu/www/framework/impl/RButton;->drawMe(Lcom/philzhu/www/framework/Graphics;)V

    .line 665
    add-int/lit8 v3, v3, 0x1

    goto :goto_2
.end method

.method private drawKeeperCards(Lcom/philzhu/www/framework/Graphics;)V
    .locals 15
    .parameter "g"

    .prologue
    .line 1032
    sget-object v0, Lcom/philzhu/www/ddz/Keeper;->playerUOutCards:Ljava/util/Vector;

    if-nez v0, :cond_0

    sget-object v0, Lcom/philzhu/www/ddz/Keeper;->playerUOutCards:Ljava/util/Vector;

    invoke-virtual {v0}, Ljava/util/Vector;->size()I

    move-result v0

    if-eqz v0, :cond_1

    .line 1034
    :cond_0
    sget-object v0, Lcom/philzhu/www/ddz/Keeper;->playerUOutCards:Ljava/util/Vector;

    invoke-virtual {v0}, Ljava/util/Vector;->size()I

    move-result v14

    .line 1035
    .local v14, playerUTotalOutCardsSize:I
    const/16 v12, 0x78

    .line 1036
    .local v12, offsetX:I
    const/16 v3, 0x46

    .line 1037
    .local v3, offsetY:I
    const/4 v11, 0x0

    .local v11, i:I
    :goto_0
    if-lt v11, v14, :cond_6

    .line 1061
    .end local v3           #offsetY:I
    .end local v11           #i:I
    .end local v12           #offsetX:I
    .end local v14           #playerUTotalOutCardsSize:I
    :cond_1
    sget-object v0, Lcom/philzhu/www/ddz/Keeper;->playerDOutCards:Ljava/util/Vector;

    if-nez v0, :cond_2

    sget-object v0, Lcom/philzhu/www/ddz/Keeper;->playerDOutCards:Ljava/util/Vector;

    invoke-virtual {v0}, Ljava/util/Vector;->size()I

    move-result v0

    if-eqz v0, :cond_3

    .line 1063
    :cond_2
    sget-object v0, Lcom/philzhu/www/ddz/Keeper;->playerDOutCards:Ljava/util/Vector;

    invoke-virtual {v0}, Ljava/util/Vector;->size()I

    move-result v13

    .line 1064
    .local v13, playerMTotalOutCardsSize:I
    const/16 v12, 0x1a4

    .line 1065
    .restart local v12       #offsetX:I
    const/16 v3, 0x46

    .line 1066
    .restart local v3       #offsetY:I
    const/4 v11, 0x0

    .restart local v11       #i:I
    :goto_1
    if-lt v11, v13, :cond_a

    .line 1090
    .end local v3           #offsetY:I
    .end local v11           #i:I
    .end local v12           #offsetX:I
    .end local v13           #playerMTotalOutCardsSize:I
    :cond_3
    sget-object v0, Lcom/philzhu/www/ddz/Keeper;->playerMOutCards:Ljava/util/Vector;

    if-nez v0, :cond_4

    sget-object v0, Lcom/philzhu/www/ddz/Keeper;->playerMOutCards:Ljava/util/Vector;

    invoke-virtual {v0}, Ljava/util/Vector;->size()I

    move-result v0

    if-eqz v0, :cond_5

    .line 1092
    :cond_4
    sget-object v0, Lcom/philzhu/www/ddz/Keeper;->playerMOutCards:Ljava/util/Vector;

    invoke-virtual {v0}, Ljava/util/Vector;->size()I

    move-result v13

    .line 1095
    .restart local v13       #playerMTotalOutCardsSize:I
    const/16 v3, 0xc8

    .line 1096
    .restart local v3       #offsetY:I
    const/16 v0, 0xa

    if-lt v13, v0, :cond_e

    .line 1098
    const/16 v12, 0xd3

    .line 1105
    .restart local v12       #offsetX:I
    :goto_2
    const/4 v11, 0x0

    .restart local v11       #i:I
    :goto_3
    if-lt v11, v13, :cond_f

    .line 1119
    .end local v3           #offsetY:I
    .end local v11           #i:I
    .end local v12           #offsetX:I
    .end local v13           #playerMTotalOutCardsSize:I
    :cond_5
    return-void

    .line 1039
    .restart local v3       #offsetY:I
    .restart local v11       #i:I
    .restart local v12       #offsetX:I
    .restart local v14       #playerUTotalOutCardsSize:I
    :cond_6
    sget-object v0, Lcom/philzhu/www/ddz/Keeper;->playerUOutCards:Ljava/util/Vector;

    invoke-virtual {v0, v11}, Ljava/util/Vector;->elementAt(I)Ljava/lang/Object;

    move-result-object v10

    check-cast v10, Lcom/philzhu/www/ddz/Card;

    .line 1041
    .local v10, card:Lcom/philzhu/www/ddz/Card;
    invoke-direct {p0, v10}, Lcom/philzhu/www/ddz/GameScreen;->getCardPixmap(Lcom/philzhu/www/ddz/Card;)Lcom/philzhu/www/framework/Pixmap;

    move-result-object v1

    .line 1042
    .local v1, cardPixmap:Lcom/philzhu/www/framework/Pixmap;
    const/4 v0, 0x6

    if-ge v11, v0, :cond_7

    .line 1044
    mul-int/lit8 v0, v11, 0x23

    add-int v2, v12, v0

    const/16 v4, 0x3f

    const/16 v5, 0x56

    move-object/from16 v0, p1

    invoke-interface/range {v0 .. v5}, Lcom/philzhu/www/framework/Graphics;->drawPixmap(Lcom/philzhu/www/framework/Pixmap;IIII)V

    .line 1037
    :goto_4
    add-int/lit8 v11, v11, 0x1

    goto :goto_0

    .line 1046
    :cond_7
    const/16 v0, 0xc

    if-ge v11, v0, :cond_8

    .line 1048
    const/4 v0, 0x6

    sub-int v0, v11, v0

    mul-int/lit8 v0, v0, 0x23

    add-int v6, v12, v0

    add-int/lit8 v7, v3, 0x19

    const/16 v8, 0x3f

    const/16 v9, 0x56

    move-object/from16 v4, p1

    move-object v5, v1

    invoke-interface/range {v4 .. v9}, Lcom/philzhu/www/framework/Graphics;->drawPixmap(Lcom/philzhu/www/framework/Pixmap;IIII)V

    goto :goto_4

    .line 1050
    :cond_8
    const/16 v0, 0x12

    if-ge v11, v0, :cond_9

    .line 1052
    const/16 v0, 0xc

    sub-int v0, v11, v0

    mul-int/lit8 v0, v0, 0x23

    add-int v6, v12, v0

    add-int/lit8 v7, v3, 0x32

    const/16 v8, 0x3f

    const/16 v9, 0x56

    move-object/from16 v4, p1

    move-object v5, v1

    invoke-interface/range {v4 .. v9}, Lcom/philzhu/www/framework/Graphics;->drawPixmap(Lcom/philzhu/www/framework/Pixmap;IIII)V

    goto :goto_4

    .line 1056
    :cond_9
    const/16 v0, 0x12

    sub-int v0, v11, v0

    mul-int/lit8 v0, v0, 0x23

    add-int v6, v12, v0

    add-int/lit8 v7, v3, 0x4b

    const/16 v8, 0x3f

    const/16 v9, 0x56

    move-object/from16 v4, p1

    move-object v5, v1

    invoke-interface/range {v4 .. v9}, Lcom/philzhu/www/framework/Graphics;->drawPixmap(Lcom/philzhu/www/framework/Pixmap;IIII)V

    goto :goto_4

    .line 1068
    .end local v1           #cardPixmap:Lcom/philzhu/www/framework/Pixmap;
    .end local v10           #card:Lcom/philzhu/www/ddz/Card;
    .end local v14           #playerUTotalOutCardsSize:I
    .restart local v13       #playerMTotalOutCardsSize:I
    :cond_a
    sget-object v0, Lcom/philzhu/www/ddz/Keeper;->playerDOutCards:Ljava/util/Vector;

    invoke-virtual {v0, v11}, Ljava/util/Vector;->elementAt(I)Ljava/lang/Object;

    move-result-object v10

    check-cast v10, Lcom/philzhu/www/ddz/Card;

    .line 1070
    .restart local v10       #card:Lcom/philzhu/www/ddz/Card;
    invoke-direct {p0, v10}, Lcom/philzhu/www/ddz/GameScreen;->getCardPixmap(Lcom/philzhu/www/ddz/Card;)Lcom/philzhu/www/framework/Pixmap;

    move-result-object v1

    .line 1071
    .restart local v1       #cardPixmap:Lcom/philzhu/www/framework/Pixmap;
    const/4 v0, 0x6

    if-ge v11, v0, :cond_b

    .line 1073
    mul-int/lit8 v0, v11, 0x23

    add-int v2, v12, v0

    const/16 v4, 0x3f

    const/16 v5, 0x56

    move-object/from16 v0, p1

    invoke-interface/range {v0 .. v5}, Lcom/philzhu/www/framework/Graphics;->drawPixmap(Lcom/philzhu/www/framework/Pixmap;IIII)V

    .line 1066
    :goto_5
    add-int/lit8 v11, v11, 0x1

    goto/16 :goto_1

    .line 1075
    :cond_b
    const/16 v0, 0xc

    if-ge v11, v0, :cond_c

    .line 1077
    const/4 v0, 0x6

    sub-int v0, v11, v0

    mul-int/lit8 v0, v0, 0x23

    add-int v6, v12, v0

    add-int/lit8 v7, v3, 0x19

    const/16 v8, 0x3f

    const/16 v9, 0x56

    move-object/from16 v4, p1

    move-object v5, v1

    invoke-interface/range {v4 .. v9}, Lcom/philzhu/www/framework/Graphics;->drawPixmap(Lcom/philzhu/www/framework/Pixmap;IIII)V

    goto :goto_5

    .line 1079
    :cond_c
    const/16 v0, 0x12

    if-ge v11, v0, :cond_d

    .line 1081
    const/16 v0, 0xc

    sub-int v0, v11, v0

    mul-int/lit8 v0, v0, 0x23

    add-int v6, v12, v0

    add-int/lit8 v7, v3, 0x32

    const/16 v8, 0x3f

    const/16 v9, 0x56

    move-object/from16 v4, p1

    move-object v5, v1

    invoke-interface/range {v4 .. v9}, Lcom/philzhu/www/framework/Graphics;->drawPixmap(Lcom/philzhu/www/framework/Pixmap;IIII)V

    goto :goto_5

    .line 1085
    :cond_d
    const/16 v0, 0x12

    sub-int v0, v11, v0

    mul-int/lit8 v0, v0, 0x23

    add-int v6, v12, v0

    add-int/lit8 v7, v3, 0x4b

    const/16 v8, 0x3f

    const/16 v9, 0x56

    move-object/from16 v4, p1

    move-object v5, v1

    invoke-interface/range {v4 .. v9}, Lcom/philzhu/www/framework/Graphics;->drawPixmap(Lcom/philzhu/www/framework/Pixmap;IIII)V

    goto :goto_5

    .line 1102
    .end local v1           #cardPixmap:Lcom/philzhu/www/framework/Pixmap;
    .end local v10           #card:Lcom/philzhu/www/ddz/Card;
    .end local v11           #i:I
    .end local v12           #offsetX:I
    :cond_e
    const/16 v0, 0x320

    const/4 v1, 0x1

    sub-int v1, v13, v1

    mul-int/lit8 v1, v1, 0x23

    add-int/lit8 v1, v1, 0x3f

    sub-int/2addr v0, v1

    div-int/lit8 v12, v0, 0x2

    .restart local v12       #offsetX:I
    goto/16 :goto_2

    .line 1106
    .restart local v11       #i:I
    :cond_f
    sget-object v0, Lcom/philzhu/www/ddz/Keeper;->playerMOutCards:Ljava/util/Vector;

    invoke-virtual {v0, v11}, Ljava/util/Vector;->elementAt(I)Ljava/lang/Object;

    move-result-object v10

    check-cast v10, Lcom/philzhu/www/ddz/Card;

    .line 1108
    .restart local v10       #card:Lcom/philzhu/www/ddz/Card;
    invoke-direct {p0, v10}, Lcom/philzhu/www/ddz/GameScreen;->getCardPixmap(Lcom/philzhu/www/ddz/Card;)Lcom/philzhu/www/framework/Pixmap;

    move-result-object v1

    .line 1109
    .restart local v1       #cardPixmap:Lcom/philzhu/www/framework/Pixmap;
    const/16 v0, 0xa

    if-ge v11, v0, :cond_10

    .line 1111
    mul-int/lit8 v0, v11, 0x23

    add-int v2, v12, v0

    const/16 v4, 0x3f

    const/16 v5, 0x56

    move-object/from16 v0, p1

    invoke-interface/range {v0 .. v5}, Lcom/philzhu/www/framework/Graphics;->drawPixmap(Lcom/philzhu/www/framework/Pixmap;IIII)V

    .line 1105
    :goto_6
    add-int/lit8 v11, v11, 0x1

    goto/16 :goto_3

    .line 1115
    :cond_10
    const/16 v0, 0xa

    sub-int v0, v11, v0

    mul-int/lit8 v0, v0, 0x23

    add-int v6, v12, v0

    add-int/lit8 v7, v3, 0x19

    const/16 v8, 0x3f

    const/16 v9, 0x56

    move-object/from16 v4, p1

    move-object v5, v1

    invoke-interface/range {v4 .. v9}, Lcom/philzhu/www/framework/Graphics;->drawPixmap(Lcom/philzhu/www/framework/Pixmap;IIII)V

    goto :goto_6
.end method

.method private drawOutCards(Lcom/philzhu/www/framework/Graphics;)V
    .locals 22
    .parameter "g"

    .prologue
    .line 921
    move-object/from16 v0, p0

    iget-object v0, v0, Lcom/philzhu/www/ddz/GameScreen;->world:Lcom/philzhu/www/ddz/World;

    move-object v2, v0

    move-object v0, v2

    iget-object v0, v0, Lcom/philzhu/www/ddz/World;->playerM:Lcom/philzhu/www/ddz/Player;

    move-object/from16 v20, v0

    .line 922
    .local v20, playerM:Lcom/philzhu/www/ddz/Player;
    move-object/from16 v0, p0

    iget-object v0, v0, Lcom/philzhu/www/ddz/GameScreen;->world:Lcom/philzhu/www/ddz/World;

    move-object v2, v0

    move-object v0, v2

    iget-object v0, v0, Lcom/philzhu/www/ddz/World;->playerU:Lcom/philzhu/www/ddz/Player;

    move-object/from16 v21, v0

    .line 923
    .local v21, playerU:Lcom/philzhu/www/ddz/Player;
    move-object/from16 v0, p0

    iget-object v0, v0, Lcom/philzhu/www/ddz/GameScreen;->world:Lcom/philzhu/www/ddz/World;

    move-object v2, v0

    move-object v0, v2

    iget-object v0, v0, Lcom/philzhu/www/ddz/World;->playerD:Lcom/philzhu/www/ddz/Player;

    move-object/from16 v19, v0

    .line 925
    .local v19, playerD:Lcom/philzhu/www/ddz/Player;
    const/16 v17, 0x0

    .line 926
    .local v17, offsetX:I
    const/4 v5, 0x0

    .line 928
    .local v5, offsetY:I
    invoke-virtual/range {v20 .. v20}, Lcom/philzhu/www/ddz/Player;->getOutCards()Ljava/util/Vector;

    move-result-object v2

    if-eqz v2, :cond_0

    .line 930
    invoke-virtual/range {v20 .. v20}, Lcom/philzhu/www/ddz/Player;->getOutCards()Ljava/util/Vector;

    move-result-object v13

    .line 931
    .local v13, cards:Ljava/util/Vector;,"Ljava/util/Vector<Lcom/philzhu/www/ddz/Card;>;"
    invoke-virtual {v13}, Ljava/util/Vector;->size()I

    move-result v16

    .line 932
    .local v16, len:I
    const/16 v14, 0xa

    .line 933
    .local v14, cardsNumPerLine:I
    move/from16 v0, v16

    move v1, v14

    if-ge v0, v1, :cond_3

    .line 935
    const/16 v2, 0x320

    mul-int/lit8 v3, v16, 0x23

    sub-int/2addr v2, v3

    div-int/lit8 v17, v2, 0x2

    .line 941
    :goto_0
    const/16 v18, 0xd7

    .line 942
    .end local v5           #offsetY:I
    .local v18, offsetY:I
    const/4 v15, 0x0

    .local v15, i:I
    :goto_1
    move v0, v15

    move/from16 v1, v16

    if-lt v0, v1, :cond_4

    move/from16 v5, v18

    .line 965
    .end local v13           #cards:Ljava/util/Vector;,"Ljava/util/Vector<Lcom/philzhu/www/ddz/Card;>;"
    .end local v14           #cardsNumPerLine:I
    .end local v15           #i:I
    .end local v16           #len:I
    .end local v18           #offsetY:I
    .restart local v5       #offsetY:I
    :cond_0
    invoke-virtual/range {v21 .. v21}, Lcom/philzhu/www/ddz/Player;->getOutCards()Ljava/util/Vector;

    move-result-object v2

    if-eqz v2, :cond_1

    .line 967
    invoke-virtual/range {v21 .. v21}, Lcom/philzhu/www/ddz/Player;->getOutCards()Ljava/util/Vector;

    move-result-object v13

    .line 968
    .restart local v13       #cards:Ljava/util/Vector;,"Ljava/util/Vector<Lcom/philzhu/www/ddz/Card;>;"
    invoke-virtual {v13}, Ljava/util/Vector;->size()I

    move-result v16

    .line 969
    .restart local v16       #len:I
    const/16 v17, 0x78

    .line 970
    const/16 v5, 0x64

    .line 971
    const/4 v15, 0x0

    .restart local v15       #i:I
    :goto_2
    move v0, v15

    move/from16 v1, v16

    if-lt v0, v1, :cond_7

    .line 993
    .end local v13           #cards:Ljava/util/Vector;,"Ljava/util/Vector<Lcom/philzhu/www/ddz/Card;>;"
    .end local v15           #i:I
    .end local v16           #len:I
    :cond_1
    invoke-virtual/range {v19 .. v19}, Lcom/philzhu/www/ddz/Player;->getOutCards()Ljava/util/Vector;

    move-result-object v2

    if-eqz v2, :cond_2

    .line 995
    invoke-virtual/range {v19 .. v19}, Lcom/philzhu/www/ddz/Player;->getOutCards()Ljava/util/Vector;

    move-result-object v13

    .line 996
    .restart local v13       #cards:Ljava/util/Vector;,"Ljava/util/Vector<Lcom/philzhu/www/ddz/Card;>;"
    invoke-virtual {v13}, Ljava/util/Vector;->size()I

    move-result v16

    .line 997
    .restart local v16       #len:I
    const/16 v17, 0x269

    .line 998
    const/16 v5, 0x64

    .line 999
    const/4 v15, 0x0

    .restart local v15       #i:I
    :goto_3
    move v0, v15

    move/from16 v1, v16

    if-lt v0, v1, :cond_b

    .line 1028
    .end local v13           #cards:Ljava/util/Vector;,"Ljava/util/Vector<Lcom/philzhu/www/ddz/Card;>;"
    .end local v15           #i:I
    .end local v16           #len:I
    :cond_2
    return-void

    .line 939
    .restart local v13       #cards:Ljava/util/Vector;,"Ljava/util/Vector<Lcom/philzhu/www/ddz/Card;>;"
    .restart local v14       #cardsNumPerLine:I
    .restart local v16       #len:I
    :cond_3
    const/16 v2, 0x320

    mul-int/lit8 v3, v14, 0x23

    sub-int/2addr v2, v3

    div-int/lit8 v17, v2, 0x2

    goto :goto_0

    .line 943
    .end local v5           #offsetY:I
    .restart local v15       #i:I
    .restart local v18       #offsetY:I
    :cond_4
    invoke-virtual {v13, v15}, Ljava/util/Vector;->elementAt(I)Ljava/lang/Object;

    move-result-object v12

    check-cast v12, Lcom/philzhu/www/ddz/Card;

    .line 945
    .local v12, card:Lcom/philzhu/www/ddz/Card;
    move-object/from16 v0, p0

    move-object v1, v12

    invoke-direct {v0, v1}, Lcom/philzhu/www/ddz/GameScreen;->getCardPixmap(Lcom/philzhu/www/ddz/Card;)Lcom/philzhu/www/framework/Pixmap;

    move-result-object v3

    .line 947
    .local v3, cardPixmap:Lcom/philzhu/www/framework/Pixmap;
    if-ge v15, v14, :cond_6

    .line 949
    move/from16 v0, v16

    move v1, v14

    if-le v0, v1, :cond_5

    .line 951
    mul-int/lit8 v2, v15, 0x23

    add-int v4, v17, v2

    const/16 v2, 0x19

    sub-int v5, v18, v2

    const/16 v6, 0x3f

    const/16 v7, 0x56

    move-object/from16 v2, p1

    invoke-interface/range {v2 .. v7}, Lcom/philzhu/www/framework/Graphics;->drawPixmap(Lcom/philzhu/www/framework/Pixmap;IIII)V

    .line 942
    :goto_4
    add-int/lit8 v15, v15, 0x1

    goto :goto_1

    .line 955
    :cond_5
    mul-int/lit8 v2, v15, 0x23

    add-int v4, v17, v2

    const/16 v6, 0x3f

    const/16 v7, 0x56

    move-object/from16 v2, p1

    move/from16 v5, v18

    invoke-interface/range {v2 .. v7}, Lcom/philzhu/www/framework/Graphics;->drawPixmap(Lcom/philzhu/www/framework/Pixmap;IIII)V

    goto :goto_4

    .line 960
    :cond_6
    sub-int v2, v15, v14

    mul-int/lit8 v2, v2, 0x23

    add-int v4, v17, v2

    const/16 v6, 0x3f

    const/16 v7, 0x56

    move-object/from16 v2, p1

    move/from16 v5, v18

    invoke-interface/range {v2 .. v7}, Lcom/philzhu/www/framework/Graphics;->drawPixmap(Lcom/philzhu/www/framework/Pixmap;IIII)V

    goto :goto_4

    .line 972
    .end local v3           #cardPixmap:Lcom/philzhu/www/framework/Pixmap;
    .end local v12           #card:Lcom/philzhu/www/ddz/Card;
    .end local v14           #cardsNumPerLine:I
    .end local v18           #offsetY:I
    .restart local v5       #offsetY:I
    :cond_7
    invoke-virtual {v13, v15}, Ljava/util/Vector;->elementAt(I)Ljava/lang/Object;

    move-result-object v12

    check-cast v12, Lcom/philzhu/www/ddz/Card;

    .line 974
    .restart local v12       #card:Lcom/philzhu/www/ddz/Card;
    move-object/from16 v0, p0

    move-object v1, v12

    invoke-direct {v0, v1}, Lcom/philzhu/www/ddz/GameScreen;->getCardPixmap(Lcom/philzhu/www/ddz/Card;)Lcom/philzhu/www/framework/Pixmap;

    move-result-object v3

    .line 975
    .restart local v3       #cardPixmap:Lcom/philzhu/www/framework/Pixmap;
    const/4 v2, 0x6

    if-ge v15, v2, :cond_8

    .line 977
    mul-int/lit8 v2, v15, 0x23

    add-int v4, v17, v2

    const/16 v6, 0x3f

    const/16 v7, 0x56

    move-object/from16 v2, p1

    invoke-interface/range {v2 .. v7}, Lcom/philzhu/www/framework/Graphics;->drawPixmap(Lcom/philzhu/www/framework/Pixmap;IIII)V

    .line 971
    :goto_5
    add-int/lit8 v15, v15, 0x1

    goto/16 :goto_2

    .line 979
    :cond_8
    const/16 v2, 0xc

    if-ge v15, v2, :cond_9

    .line 981
    const/4 v2, 0x6

    sub-int v2, v15, v2

    mul-int/lit8 v2, v2, 0x23

    add-int v8, v17, v2

    add-int/lit8 v9, v5, 0x19

    const/16 v10, 0x3f

    const/16 v11, 0x56

    move-object/from16 v6, p1

    move-object v7, v3

    invoke-interface/range {v6 .. v11}, Lcom/philzhu/www/framework/Graphics;->drawPixmap(Lcom/philzhu/www/framework/Pixmap;IIII)V

    goto :goto_5

    .line 983
    :cond_9
    const/16 v2, 0x12

    if-ge v15, v2, :cond_a

    .line 985
    const/16 v2, 0xc

    sub-int v2, v15, v2

    mul-int/lit8 v2, v2, 0x23

    add-int v8, v17, v2

    add-int/lit8 v9, v5, 0x32

    const/16 v10, 0x3f

    const/16 v11, 0x56

    move-object/from16 v6, p1

    move-object v7, v3

    invoke-interface/range {v6 .. v11}, Lcom/philzhu/www/framework/Graphics;->drawPixmap(Lcom/philzhu/www/framework/Pixmap;IIII)V

    goto :goto_5

    .line 989
    :cond_a
    const/16 v2, 0x12

    sub-int v2, v15, v2

    mul-int/lit8 v2, v2, 0x23

    add-int v8, v17, v2

    add-int/lit8 v9, v5, 0x4b

    const/16 v10, 0x3f

    const/16 v11, 0x56

    move-object/from16 v6, p1

    move-object v7, v3

    invoke-interface/range {v6 .. v11}, Lcom/philzhu/www/framework/Graphics;->drawPixmap(Lcom/philzhu/www/framework/Pixmap;IIII)V

    goto :goto_5

    .line 1000
    .end local v3           #cardPixmap:Lcom/philzhu/www/framework/Pixmap;
    .end local v12           #card:Lcom/philzhu/www/ddz/Card;
    :cond_b
    invoke-virtual {v13, v15}, Ljava/util/Vector;->elementAt(I)Ljava/lang/Object;

    move-result-object v12

    check-cast v12, Lcom/philzhu/www/ddz/Card;

    .line 1002
    .restart local v12       #card:Lcom/philzhu/www/ddz/Card;
    move-object/from16 v0, p0

    move-object v1, v12

    invoke-direct {v0, v1}, Lcom/philzhu/www/ddz/GameScreen;->getCardPixmap(Lcom/philzhu/www/ddz/Card;)Lcom/philzhu/www/framework/Pixmap;

    move-result-object v3

    .line 1003
    .restart local v3       #cardPixmap:Lcom/philzhu/www/framework/Pixmap;
    const/4 v2, 0x6

    if-ge v15, v2, :cond_d

    .line 1005
    const/4 v2, 0x6

    move/from16 v0, v16

    move v1, v2

    if-ge v0, v1, :cond_c

    .line 1007
    const/4 v2, 0x1

    sub-int v2, v16, v2

    sub-int/2addr v2, v15

    mul-int/lit8 v2, v2, 0x23

    sub-int v4, v17, v2

    const/16 v6, 0x3f

    const/16 v7, 0x56

    move-object/from16 v2, p1

    invoke-interface/range {v2 .. v7}, Lcom/philzhu/www/framework/Graphics;->drawPixmap(Lcom/philzhu/www/framework/Pixmap;IIII)V

    .line 999
    :goto_6
    add-int/lit8 v15, v15, 0x1

    goto/16 :goto_3

    .line 1011
    :cond_c
    const/4 v2, 0x5

    sub-int/2addr v2, v15

    mul-int/lit8 v2, v2, 0x23

    sub-int v4, v17, v2

    const/16 v6, 0x3f

    const/16 v7, 0x56

    move-object/from16 v2, p1

    invoke-interface/range {v2 .. v7}, Lcom/philzhu/www/framework/Graphics;->drawPixmap(Lcom/philzhu/www/framework/Pixmap;IIII)V

    goto :goto_6

    .line 1014
    :cond_d
    const/16 v2, 0xc

    if-ge v15, v2, :cond_e

    .line 1016
    const/16 v2, 0xaf

    sub-int v2, v17, v2

    const/4 v2, 0x6

    sub-int v2, v15, v2

    mul-int/lit8 v2, v2, 0x23

    add-int/lit16 v8, v2, 0x1ba

    add-int/lit8 v9, v5, 0x19

    const/16 v10, 0x3f

    const/16 v11, 0x56

    move-object/from16 v6, p1

    move-object v7, v3

    invoke-interface/range {v6 .. v11}, Lcom/philzhu/www/framework/Graphics;->drawPixmap(Lcom/philzhu/www/framework/Pixmap;IIII)V

    goto :goto_6

    .line 1018
    :cond_e
    const/16 v2, 0x12

    if-ge v15, v2, :cond_f

    .line 1020
    const/16 v2, 0xaf

    sub-int v2, v17, v2

    const/16 v2, 0xc

    sub-int v2, v15, v2

    mul-int/lit8 v2, v2, 0x23

    add-int/lit16 v8, v2, 0x1ba

    add-int/lit8 v9, v5, 0x32

    const/16 v10, 0x3f

    const/16 v11, 0x56

    move-object/from16 v6, p1

    move-object v7, v3

    invoke-interface/range {v6 .. v11}, Lcom/philzhu/www/framework/Graphics;->drawPixmap(Lcom/philzhu/www/framework/Pixmap;IIII)V

    goto :goto_6

    .line 1024
    :cond_f
    const/16 v2, 0xaf

    sub-int v2, v17, v2

    const/16 v2, 0x12

    sub-int v2, v15, v2

    mul-int/lit8 v2, v2, 0x23

    add-int/lit16 v8, v2, 0x1ba

    add-int/lit8 v9, v5, 0x4b

    const/16 v10, 0x3f

    const/16 v11, 0x56

    move-object/from16 v6, p1

    move-object v7, v3

    invoke-interface/range {v6 .. v11}, Lcom/philzhu/www/framework/Graphics;->drawPixmap(Lcom/philzhu/www/framework/Pixmap;IIII)V

    goto :goto_6
.end method

.method private drawOutCardsMessage(Lcom/philzhu/www/framework/Graphics;F)V
    .locals 6
    .parameter "g"
    .parameter "deltaTime"

    .prologue
    const/16 v5, 0x320

    const/16 v4, 0x130

    .line 1144
    iget-object v2, p0, Lcom/philzhu/www/ddz/GameScreen;->world:Lcom/philzhu/www/ddz/World;

    iget v2, v2, Lcom/philzhu/www/ddz/World;->alpha:I

    if-lez v2, :cond_1

    .line 1146
    iget-object v2, p0, Lcom/philzhu/www/ddz/GameScreen;->world:Lcom/philzhu/www/ddz/World;

    iget-boolean v2, v2, Lcom/philzhu/www/ddz/World;->pickedTheWrongCards:Z

    if-eqz v2, :cond_0

    .line 1148
    sget-object v2, Lcom/philzhu/www/ddz/Assets;->wrongCards:Lcom/philzhu/www/framework/Pixmap;

    invoke-interface {v2}, Lcom/philzhu/www/framework/Pixmap;->getRawWidth()I

    move-result v2

    sub-int v2, v5, v2

    div-int/lit8 v0, v2, 0x2

    .line 1149
    .local v0, x:I
    sget-object v2, Lcom/philzhu/www/ddz/Assets;->wrongCards:Lcom/philzhu/www/framework/Pixmap;

    invoke-interface {v2}, Lcom/philzhu/www/framework/Pixmap;->getRawHeight()I

    move-result v2

    sub-int v1, v4, v2

    .line 1150
    .local v1, y:I
    sget-object v2, Lcom/philzhu/www/ddz/Assets;->wrongCards:Lcom/philzhu/www/framework/Pixmap;

    iget-object v3, p0, Lcom/philzhu/www/ddz/GameScreen;->world:Lcom/philzhu/www/ddz/World;

    iget v3, v3, Lcom/philzhu/www/ddz/World;->alpha:I

    invoke-interface {p1, v2, v0, v1, v3}, Lcom/philzhu/www/framework/Graphics;->drawPixmap(Lcom/philzhu/www/framework/Pixmap;III)V

    .line 1152
    .end local v0           #x:I
    .end local v1           #y:I
    :cond_0
    iget-object v2, p0, Lcom/philzhu/www/ddz/GameScreen;->world:Lcom/philzhu/www/ddz/World;

    iget-boolean v2, v2, Lcom/philzhu/www/ddz/World;->noBiggerCard:Z

    if-eqz v2, :cond_1

    .line 1154
    sget-object v2, Lcom/philzhu/www/ddz/Assets;->noBiggerCards:Lcom/philzhu/www/framework/Pixmap;

    invoke-interface {v2}, Lcom/philzhu/www/framework/Pixmap;->getRawWidth()I

    move-result v2

    sub-int v2, v5, v2

    div-int/lit8 v0, v2, 0x2

    .line 1155
    .restart local v0       #x:I
    sget-object v2, Lcom/philzhu/www/ddz/Assets;->noBiggerCards:Lcom/philzhu/www/framework/Pixmap;

    invoke-interface {v2}, Lcom/philzhu/www/framework/Pixmap;->getRawHeight()I

    move-result v2

    sub-int v1, v4, v2

    .line 1156
    .restart local v1       #y:I
    sget-object v2, Lcom/philzhu/www/ddz/Assets;->noBiggerCards:Lcom/philzhu/www/framework/Pixmap;

    iget-object v3, p0, Lcom/philzhu/www/ddz/GameScreen;->world:Lcom/philzhu/www/ddz/World;

    iget v3, v3, Lcom/philzhu/www/ddz/World;->alpha:I

    invoke-interface {p1, v2, v0, v1, v3}, Lcom/philzhu/www/framework/Graphics;->drawPixmap(Lcom/philzhu/www/framework/Pixmap;III)V

    .line 1159
    .end local v0           #x:I
    .end local v1           #y:I
    :cond_1
    return-void
.end method

.method private drawRunningUI(F)V
    .locals 5
    .parameter "deltaTime"

    .prologue
    .line 477
    iget-object v4, p0, Lcom/philzhu/www/ddz/GameScreen;->game:Lcom/philzhu/www/framework/Game;

    invoke-interface {v4}, Lcom/philzhu/www/framework/Game;->getGraphics()Lcom/philzhu/www/framework/Graphics;

    move-result-object v2

    .line 479
    .local v2, g:Lcom/philzhu/www/framework/Graphics;
    iget-object v4, p0, Lcom/philzhu/www/ddz/GameScreen;->world:Lcom/philzhu/www/ddz/World;

    invoke-direct {p0, v4}, Lcom/philzhu/www/ddz/GameScreen;->drawWorld(Lcom/philzhu/www/ddz/World;)V

    .line 482
    iget-object v4, p0, Lcom/philzhu/www/ddz/GameScreen;->commonButtons:Ljava/util/Vector;

    invoke-virtual {v4}, Ljava/util/Vector;->size()I

    move-result v1

    .line 483
    .local v1, commonButtonSize:I
    const/4 v3, 0x0

    .local v3, j:I
    :goto_0
    if-lt v3, v1, :cond_1

    .line 492
    iget-object v4, p0, Lcom/philzhu/www/ddz/GameScreen;->runningButtons:Ljava/util/Vector;

    invoke-virtual {v4}, Ljava/util/Vector;->size()I

    move-result v0

    .line 493
    .local v0, buttonSize:I
    const/4 v3, 0x0

    :goto_1
    if-lt v3, v0, :cond_3

    .line 501
    iget-object v4, p0, Lcom/philzhu/www/ddz/GameScreen;->world:Lcom/philzhu/www/ddz/World;

    iget-boolean v4, v4, Lcom/philzhu/www/ddz/World;->isKeeperDown:Z

    if-nez v4, :cond_0

    iget-object v4, p0, Lcom/philzhu/www/ddz/GameScreen;->world:Lcom/philzhu/www/ddz/World;

    iget-boolean v4, v4, Lcom/philzhu/www/ddz/World;->isKeeperUp:Z

    if-nez v4, :cond_0

    .line 503
    invoke-direct {p0, v2}, Lcom/philzhu/www/ddz/GameScreen;->drawDialogMessage(Lcom/philzhu/www/framework/Graphics;)V

    .line 505
    invoke-direct {p0, v2}, Lcom/philzhu/www/ddz/GameScreen;->drawOutCards(Lcom/philzhu/www/framework/Graphics;)V

    .line 507
    invoke-direct {p0, v2, p1}, Lcom/philzhu/www/ddz/GameScreen;->drawOutCardsMessage(Lcom/philzhu/www/framework/Graphics;F)V

    .line 510
    :cond_0
    invoke-direct {p0, v2}, Lcom/philzhu/www/ddz/GameScreen;->drawBottomCards(Lcom/philzhu/www/framework/Graphics;)V

    .line 511
    return-void

    .line 485
    .end local v0           #buttonSize:I
    :cond_1
    iget-object v4, p0, Lcom/philzhu/www/ddz/GameScreen;->commonButtons:Ljava/util/Vector;

    invoke-virtual {v4, v3}, Ljava/util/Vector;->elementAt(I)Ljava/lang/Object;

    move-result-object v4

    check-cast v4, Lcom/philzhu/www/framework/impl/RButton;

    iget-boolean v4, v4, Lcom/philzhu/www/framework/impl/RButton;->isVisible:Z

    if-eqz v4, :cond_2

    .line 487
    iget-object v4, p0, Lcom/philzhu/www/ddz/GameScreen;->commonButtons:Ljava/util/Vector;

    invoke-virtual {v4, v3}, Ljava/util/Vector;->elementAt(I)Ljava/lang/Object;

    move-result-object v4

    check-cast v4, Lcom/philzhu/www/framework/impl/RButton;

    invoke-virtual {v4, v2}, Lcom/philzhu/www/framework/impl/RButton;->drawMe(Lcom/philzhu/www/framework/Graphics;)V

    .line 483
    :cond_2
    add-int/lit8 v3, v3, 0x1

    goto :goto_0

    .line 495
    .restart local v0       #buttonSize:I
    :cond_3
    iget-object v4, p0, Lcom/philzhu/www/ddz/GameScreen;->runningButtons:Ljava/util/Vector;

    invoke-virtual {v4, v3}, Ljava/util/Vector;->elementAt(I)Ljava/lang/Object;

    move-result-object v4

    check-cast v4, Lcom/philzhu/www/framework/impl/RButton;

    iget-boolean v4, v4, Lcom/philzhu/www/framework/impl/RButton;->isVisible:Z

    if-eqz v4, :cond_4

    .line 497
    iget-object v4, p0, Lcom/philzhu/www/ddz/GameScreen;->runningButtons:Ljava/util/Vector;

    invoke-virtual {v4, v3}, Ljava/util/Vector;->elementAt(I)Ljava/lang/Object;

    move-result-object v4

    check-cast v4, Lcom/philzhu/www/framework/impl/RButton;

    invoke-virtual {v4, v2}, Lcom/philzhu/www/framework/impl/RButton;->drawMe(Lcom/philzhu/www/framework/Graphics;)V

    .line 493
    :cond_4
    add-int/lit8 v3, v3, 0x1

    goto :goto_1
.end method

.method private drawShowAICardsUI()V
    .locals 21

    .prologue
    .line 514
    move-object/from16 v0, p0

    iget-object v0, v0, Lcom/philzhu/www/ddz/GameScreen;->game:Lcom/philzhu/www/framework/Game;

    move-object v4, v0

    invoke-interface {v4}, Lcom/philzhu/www/framework/Game;->getGraphics()Lcom/philzhu/www/framework/Graphics;

    move-result-object v2

    .line 516
    .local v2, g:Lcom/philzhu/www/framework/Graphics;
    move-object/from16 v0, p0

    iget-object v0, v0, Lcom/philzhu/www/ddz/GameScreen;->world:Lcom/philzhu/www/ddz/World;

    move-object v4, v0

    move-object/from16 v0, p0

    move-object v1, v4

    invoke-direct {v0, v1}, Lcom/philzhu/www/ddz/GameScreen;->drawWorld(Lcom/philzhu/www/ddz/World;)V

    .line 519
    move-object/from16 v0, p0

    iget-object v0, v0, Lcom/philzhu/www/ddz/GameScreen;->commonButtons:Ljava/util/Vector;

    move-object v4, v0

    invoke-virtual {v4}, Ljava/util/Vector;->size()I

    move-result v14

    .line 520
    .local v14, commonButtonSize:I
    const/16 v16, 0x0

    .local v16, j:I
    :goto_0
    move/from16 v0, v16

    move v1, v14

    if-lt v0, v1, :cond_3

    .line 528
    move-object/from16 v0, p0

    iget-object v0, v0, Lcom/philzhu/www/ddz/GameScreen;->world:Lcom/philzhu/www/ddz/World;

    move-object v4, v0

    move-object v0, v4

    iget-object v0, v0, Lcom/philzhu/www/ddz/World;->playerU:Lcom/philzhu/www/ddz/Player;

    move-object/from16 v20, v0

    .line 529
    .local v20, playerU:Lcom/philzhu/www/ddz/Player;
    move-object/from16 v0, p0

    iget-object v0, v0, Lcom/philzhu/www/ddz/GameScreen;->world:Lcom/philzhu/www/ddz/World;

    move-object v4, v0

    move-object v0, v4

    iget-object v0, v0, Lcom/philzhu/www/ddz/World;->playerD:Lcom/philzhu/www/ddz/Player;

    move-object/from16 v19, v0

    .line 531
    .local v19, playerD:Lcom/philzhu/www/ddz/Player;
    const/16 v18, 0x0

    .line 532
    .local v18, offsetX:I
    const/4 v5, 0x0

    .line 534
    .local v5, offsetY:I
    move-object/from16 v0, v20

    iget-object v0, v0, Lcom/philzhu/www/ddz/Player;->cards:Ljava/util/Vector;

    move-object v4, v0

    if-eqz v4, :cond_0

    move-object/from16 v0, v20

    iget-object v0, v0, Lcom/philzhu/www/ddz/Player;->cards:Ljava/util/Vector;

    move-object v4, v0

    invoke-virtual {v4}, Ljava/util/Vector;->size()I

    move-result v4

    if-eqz v4, :cond_0

    .line 536
    move-object/from16 v0, v20

    iget-object v0, v0, Lcom/philzhu/www/ddz/Player;->cards:Ljava/util/Vector;

    move-object v13, v0

    .line 537
    .local v13, cards:Ljava/util/Vector;,"Ljava/util/Vector<Lcom/philzhu/www/ddz/Card;>;"
    invoke-virtual {v13}, Ljava/util/Vector;->size()I

    move-result v17

    .line 538
    .local v17, len:I
    const/16 v18, 0x78

    .line 539
    const/16 v5, 0x64

    .line 540
    const/4 v15, 0x0

    .local v15, i:I
    :goto_1
    move v0, v15

    move/from16 v1, v17

    if-lt v0, v1, :cond_5

    .line 562
    .end local v13           #cards:Ljava/util/Vector;,"Ljava/util/Vector<Lcom/philzhu/www/ddz/Card;>;"
    .end local v15           #i:I
    .end local v17           #len:I
    :cond_0
    move-object/from16 v0, v19

    iget-object v0, v0, Lcom/philzhu/www/ddz/Player;->cards:Ljava/util/Vector;

    move-object v4, v0

    if-nez v4, :cond_1

    move-object/from16 v0, v19

    iget-object v0, v0, Lcom/philzhu/www/ddz/Player;->cards:Ljava/util/Vector;

    move-object v4, v0

    invoke-virtual {v4}, Ljava/util/Vector;->size()I

    move-result v4

    if-eqz v4, :cond_2

    .line 564
    :cond_1
    move-object/from16 v0, v19

    iget-object v0, v0, Lcom/philzhu/www/ddz/Player;->cards:Ljava/util/Vector;

    move-object v13, v0

    .line 565
    .restart local v13       #cards:Ljava/util/Vector;,"Ljava/util/Vector<Lcom/philzhu/www/ddz/Card;>;"
    invoke-virtual {v13}, Ljava/util/Vector;->size()I

    move-result v17

    .line 566
    .restart local v17       #len:I
    const/16 v18, 0x269

    .line 567
    const/16 v5, 0x64

    .line 568
    const/4 v15, 0x0

    .restart local v15       #i:I
    :goto_2
    move v0, v15

    move/from16 v1, v17

    if-lt v0, v1, :cond_9

    .line 598
    .end local v13           #cards:Ljava/util/Vector;,"Ljava/util/Vector<Lcom/philzhu/www/ddz/Card;>;"
    .end local v15           #i:I
    .end local v17           #len:I
    :cond_2
    move-object/from16 v0, p0

    move-object v1, v2

    invoke-direct {v0, v1}, Lcom/philzhu/www/ddz/GameScreen;->drawBottomCards(Lcom/philzhu/www/framework/Graphics;)V

    .line 599
    return-void

    .line 522
    .end local v5           #offsetY:I
    .end local v18           #offsetX:I
    .end local v19           #playerD:Lcom/philzhu/www/ddz/Player;
    .end local v20           #playerU:Lcom/philzhu/www/ddz/Player;
    :cond_3
    move-object/from16 v0, p0

    iget-object v0, v0, Lcom/philzhu/www/ddz/GameScreen;->commonButtons:Ljava/util/Vector;

    move-object v4, v0

    move-object v0, v4

    move/from16 v1, v16

    invoke-virtual {v0, v1}, Ljava/util/Vector;->elementAt(I)Ljava/lang/Object;

    move-result-object v3

    check-cast v3, Lcom/philzhu/www/framework/impl/RButton;

    iget-boolean v4, v3, Lcom/philzhu/www/framework/impl/RButton;->isVisible:Z

    if-eqz v4, :cond_4

    .line 524
    move-object/from16 v0, p0

    iget-object v0, v0, Lcom/philzhu/www/ddz/GameScreen;->commonButtons:Ljava/util/Vector;

    move-object v4, v0

    move-object v0, v4

    move/from16 v1, v16

    invoke-virtual {v0, v1}, Ljava/util/Vector;->elementAt(I)Ljava/lang/Object;

    move-result-object v3

    check-cast v3, Lcom/philzhu/www/framework/impl/RButton;

    invoke-virtual {v3, v2}, Lcom/philzhu/www/framework/impl/RButton;->drawMe(Lcom/philzhu/www/framework/Graphics;)V

    .line 520
    :cond_4
    add-int/lit8 v16, v16, 0x1

    goto/16 :goto_0

    .line 541
    .restart local v5       #offsetY:I
    .restart local v13       #cards:Ljava/util/Vector;,"Ljava/util/Vector<Lcom/philzhu/www/ddz/Card;>;"
    .restart local v15       #i:I
    .restart local v17       #len:I
    .restart local v18       #offsetX:I
    .restart local v19       #playerD:Lcom/philzhu/www/ddz/Player;
    .restart local v20       #playerU:Lcom/philzhu/www/ddz/Player;
    :cond_5
    invoke-virtual {v13, v15}, Ljava/util/Vector;->elementAt(I)Ljava/lang/Object;

    move-result-object v12

    check-cast v12, Lcom/philzhu/www/ddz/Card;

    .line 543
    .local v12, card:Lcom/philzhu/www/ddz/Card;
    move-object/from16 v0, p0

    move-object v1, v12

    invoke-direct {v0, v1}, Lcom/philzhu/www/ddz/GameScreen;->getCardPixmap(Lcom/philzhu/www/ddz/Card;)Lcom/philzhu/www/framework/Pixmap;

    move-result-object v3

    .line 544
    .local v3, cardPixmap:Lcom/philzhu/www/framework/Pixmap;
    const/4 v4, 0x6

    if-ge v15, v4, :cond_6

    .line 546
    mul-int/lit8 v4, v15, 0x23

    add-int v4, v4, v18

    const/16 v6, 0x3f

    const/16 v7, 0x56

    invoke-interface/range {v2 .. v7}, Lcom/philzhu/www/framework/Graphics;->drawPixmap(Lcom/philzhu/www/framework/Pixmap;IIII)V

    .line 540
    :goto_3
    add-int/lit8 v15, v15, 0x1

    goto :goto_1

    .line 548
    :cond_6
    const/16 v4, 0xc

    if-ge v15, v4, :cond_7

    .line 550
    const/4 v4, 0x6

    sub-int v4, v15, v4

    mul-int/lit8 v4, v4, 0x23

    add-int v8, v18, v4

    add-int/lit8 v9, v5, 0x19

    const/16 v10, 0x3f

    const/16 v11, 0x56

    move-object v6, v2

    move-object v7, v3

    invoke-interface/range {v6 .. v11}, Lcom/philzhu/www/framework/Graphics;->drawPixmap(Lcom/philzhu/www/framework/Pixmap;IIII)V

    goto :goto_3

    .line 552
    :cond_7
    const/16 v4, 0x12

    if-ge v15, v4, :cond_8

    .line 554
    const/16 v4, 0xc

    sub-int v4, v15, v4

    mul-int/lit8 v4, v4, 0x23

    add-int v8, v18, v4

    add-int/lit8 v9, v5, 0x32

    const/16 v10, 0x3f

    const/16 v11, 0x56

    move-object v6, v2

    move-object v7, v3

    invoke-interface/range {v6 .. v11}, Lcom/philzhu/www/framework/Graphics;->drawPixmap(Lcom/philzhu/www/framework/Pixmap;IIII)V

    goto :goto_3

    .line 558
    :cond_8
    const/16 v4, 0x12

    sub-int v4, v15, v4

    mul-int/lit8 v4, v4, 0x23

    add-int v8, v18, v4

    add-int/lit8 v9, v5, 0x4b

    const/16 v10, 0x3f

    const/16 v11, 0x56

    move-object v6, v2

    move-object v7, v3

    invoke-interface/range {v6 .. v11}, Lcom/philzhu/www/framework/Graphics;->drawPixmap(Lcom/philzhu/www/framework/Pixmap;IIII)V

    goto :goto_3

    .line 569
    .end local v3           #cardPixmap:Lcom/philzhu/www/framework/Pixmap;
    .end local v12           #card:Lcom/philzhu/www/ddz/Card;
    :cond_9
    invoke-virtual {v13, v15}, Ljava/util/Vector;->elementAt(I)Ljava/lang/Object;

    move-result-object v12

    check-cast v12, Lcom/philzhu/www/ddz/Card;

    .line 571
    .restart local v12       #card:Lcom/philzhu/www/ddz/Card;
    move-object/from16 v0, p0

    move-object v1, v12

    invoke-direct {v0, v1}, Lcom/philzhu/www/ddz/GameScreen;->getCardPixmap(Lcom/philzhu/www/ddz/Card;)Lcom/philzhu/www/framework/Pixmap;

    move-result-object v3

    .line 572
    .restart local v3       #cardPixmap:Lcom/philzhu/www/framework/Pixmap;
    const/4 v4, 0x6

    if-ge v15, v4, :cond_b

    .line 574
    const/4 v4, 0x6

    move/from16 v0, v17

    move v1, v4

    if-ge v0, v1, :cond_a

    .line 576
    const/4 v4, 0x1

    sub-int v4, v17, v4

    sub-int/2addr v4, v15

    mul-int/lit8 v4, v4, 0x23

    sub-int v4, v18, v4

    const/16 v6, 0x3f

    const/16 v7, 0x56

    invoke-interface/range {v2 .. v7}, Lcom/philzhu/www/framework/Graphics;->drawPixmap(Lcom/philzhu/www/framework/Pixmap;IIII)V

    .line 568
    :goto_4
    add-int/lit8 v15, v15, 0x1

    goto/16 :goto_2

    .line 580
    :cond_a
    const/4 v4, 0x5

    sub-int/2addr v4, v15

    mul-int/lit8 v4, v4, 0x23

    sub-int v4, v18, v4

    const/16 v6, 0x3f

    const/16 v7, 0x56

    invoke-interface/range {v2 .. v7}, Lcom/philzhu/www/framework/Graphics;->drawPixmap(Lcom/philzhu/www/framework/Pixmap;IIII)V

    goto :goto_4

    .line 583
    :cond_b
    const/16 v4, 0xc

    if-ge v15, v4, :cond_c

    .line 585
    const/16 v4, 0xaf

    sub-int v4, v18, v4

    const/4 v4, 0x6

    sub-int v4, v15, v4

    mul-int/lit8 v4, v4, 0x23

    add-int/lit16 v8, v4, 0x1ba

    add-int/lit8 v9, v5, 0x19

    const/16 v10, 0x3f

    const/16 v11, 0x56

    move-object v6, v2

    move-object v7, v3

    invoke-interface/range {v6 .. v11}, Lcom/philzhu/www/framework/Graphics;->drawPixmap(Lcom/philzhu/www/framework/Pixmap;IIII)V

    goto :goto_4

    .line 587
    :cond_c
    const/16 v4, 0x12

    if-ge v15, v4, :cond_d

    .line 589
    const/16 v4, 0xaf

    sub-int v4, v18, v4

    const/16 v4, 0xc

    sub-int v4, v15, v4

    mul-int/lit8 v4, v4, 0x23

    add-int/lit16 v8, v4, 0x1ba

    add-int/lit8 v9, v5, 0x32

    const/16 v10, 0x3f

    const/16 v11, 0x56

    move-object v6, v2

    move-object v7, v3

    invoke-interface/range {v6 .. v11}, Lcom/philzhu/www/framework/Graphics;->drawPixmap(Lcom/philzhu/www/framework/Pixmap;IIII)V

    goto :goto_4

    .line 593
    :cond_d
    const/16 v4, 0xaf

    sub-int v4, v18, v4

    const/16 v4, 0x12

    sub-int v4, v15, v4

    mul-int/lit8 v4, v4, 0x23

    add-int/lit16 v8, v4, 0x1ba

    add-int/lit8 v9, v5, 0x4b

    const/16 v10, 0x3f

    const/16 v11, 0x56

    move-object v6, v2

    move-object v7, v3

    invoke-interface/range {v6 .. v11}, Lcom/philzhu/www/framework/Graphics;->drawPixmap(Lcom/philzhu/www/framework/Pixmap;IIII)V

    goto :goto_4
.end method

.method private drawWinOrLose(Lcom/philzhu/www/framework/Graphics;)V
    .locals 12
    .parameter "g"

    .prologue
    .line 694
    iget-object v8, p0, Lcom/philzhu/www/ddz/GameScreen;->world:Lcom/philzhu/www/ddz/World;

    iget-object v8, v8, Lcom/philzhu/www/ddz/World;->currentPlayer:Lcom/philzhu/www/ddz/Player;

    invoke-virtual {v8}, Lcom/philzhu/www/ddz/Player;->getPlayerType()I

    move-result v7

    .line 695
    .local v7, winnerIndex:I
    iget-object v8, p0, Lcom/philzhu/www/ddz/GameScreen;->world:Lcom/philzhu/www/ddz/World;

    iget v0, v8, Lcom/philzhu/www/ddz/World;->dizhuIndex:I

    .line 702
    .local v0, dizhuIndex:I
    const/4 v8, 0x1

    if-ne v7, v8, :cond_2

    .line 704
    const/4 v4, 0x1

    .line 705
    .local v4, playerMWin:Z
    const/4 v8, 0x1

    if-ne v0, v8, :cond_0

    .line 707
    const/4 v2, 0x0

    .line 708
    .local v2, playerDWin:Z
    const/4 v6, 0x0

    .line 760
    .local v6, playerUWin:Z
    :goto_0
    if-eqz v4, :cond_8

    .line 762
    sget-object v8, Lcom/philzhu/www/ddz/Assets;->win:Lcom/philzhu/www/framework/Pixmap;

    const/16 v9, 0x1c2

    const/16 v10, 0x7d

    invoke-interface {p1, v8, v9, v10}, Lcom/philzhu/www/framework/Graphics;->drawPixmap(Lcom/philzhu/www/framework/Pixmap;II)V

    .line 763
    sget-object v8, Lcom/philzhu/www/ddz/Assets;->plus:Lcom/philzhu/www/framework/Pixmap;

    sget-object v9, Lcom/philzhu/www/ddz/Assets;->win:Lcom/philzhu/www/framework/Pixmap;

    const/high16 v10, 0x43f5

    const/high16 v11, 0x42fa

    invoke-interface {p1, v9, v10, v11}, Lcom/philzhu/www/framework/Graphics;->getCenter(Lcom/philzhu/www/framework/Pixmap;FF)Landroid/graphics/Point;

    move-result-object v9

    invoke-interface {p1, v8, v9}, Lcom/philzhu/www/framework/Graphics;->drawPixmapInParentCenter(Lcom/philzhu/www/framework/Pixmap;Landroid/graphics/Point;)V

    .line 771
    :goto_1
    if-eqz v6, :cond_9

    .line 773
    sget-object v8, Lcom/philzhu/www/ddz/Assets;->win:Lcom/philzhu/www/framework/Pixmap;

    const/16 v9, 0x1c2

    const/16 v10, 0xd2

    invoke-interface {p1, v8, v9, v10}, Lcom/philzhu/www/framework/Graphics;->drawPixmap(Lcom/philzhu/www/framework/Pixmap;II)V

    .line 774
    sget-object v8, Lcom/philzhu/www/ddz/Assets;->plus:Lcom/philzhu/www/framework/Pixmap;

    sget-object v9, Lcom/philzhu/www/ddz/Assets;->win:Lcom/philzhu/www/framework/Pixmap;

    const/high16 v10, 0x43f5

    const/high16 v11, 0x4352

    invoke-interface {p1, v9, v10, v11}, Lcom/philzhu/www/framework/Graphics;->getCenter(Lcom/philzhu/www/framework/Pixmap;FF)Landroid/graphics/Point;

    move-result-object v9

    invoke-interface {p1, v8, v9}, Lcom/philzhu/www/framework/Graphics;->drawPixmapInParentCenter(Lcom/philzhu/www/framework/Pixmap;Landroid/graphics/Point;)V

    .line 782
    :goto_2
    if-eqz v2, :cond_a

    .line 784
    sget-object v8, Lcom/philzhu/www/ddz/Assets;->win:Lcom/philzhu/www/framework/Pixmap;

    const/16 v9, 0x1c2

    const/16 v10, 0x127

    invoke-interface {p1, v8, v9, v10}, Lcom/philzhu/www/framework/Graphics;->drawPixmap(Lcom/philzhu/www/framework/Pixmap;II)V

    .line 785
    sget-object v8, Lcom/philzhu/www/ddz/Assets;->plus:Lcom/philzhu/www/framework/Pixmap;

    sget-object v9, Lcom/philzhu/www/ddz/Assets;->win:Lcom/philzhu/www/framework/Pixmap;

    const/high16 v10, 0x43f5

    const v11, 0x43938000

    invoke-interface {p1, v9, v10, v11}, Lcom/philzhu/www/framework/Graphics;->getCenter(Lcom/philzhu/www/framework/Pixmap;FF)Landroid/graphics/Point;

    move-result-object v9

    invoke-interface {p1, v8, v9}, Lcom/philzhu/www/framework/Graphics;->drawPixmapInParentCenter(Lcom/philzhu/www/framework/Pixmap;Landroid/graphics/Point;)V

    .line 794
    :goto_3
    const/4 v8, 0x1

    if-ne v0, v8, :cond_b

    .line 796
    new-instance v8, Ljava/lang/StringBuilder;

    invoke-direct {v8}, Ljava/lang/StringBuilder;-><init>()V

    iget v9, p0, Lcom/philzhu/www/ddz/GameScreen;->baseScore:I

    mul-int/lit8 v9, v9, 0x2

    invoke-virtual {v8, v9}, Ljava/lang/StringBuilder;->append(I)Ljava/lang/StringBuilder;

    move-result-object v8

    invoke-virtual {v8}, Ljava/lang/StringBuilder;->toString()Ljava/lang/String;

    move-result-object v3

    .line 797
    .local v3, playerMScore:Ljava/lang/String;
    new-instance v8, Ljava/lang/StringBuilder;

    invoke-direct {v8}, Ljava/lang/StringBuilder;-><init>()V

    iget v9, p0, Lcom/philzhu/www/ddz/GameScreen;->baseScore:I

    invoke-virtual {v8, v9}, Ljava/lang/StringBuilder;->append(I)Ljava/lang/StringBuilder;

    move-result-object v8

    invoke-virtual {v8}, Ljava/lang/StringBuilder;->toString()Ljava/lang/String;

    move-result-object v5

    .line 798
    .local v5, playerUScore:Ljava/lang/String;
    new-instance v8, Ljava/lang/StringBuilder;

    invoke-direct {v8}, Ljava/lang/StringBuilder;-><init>()V

    iget v9, p0, Lcom/philzhu/www/ddz/GameScreen;->baseScore:I

    invoke-virtual {v8, v9}, Ljava/lang/StringBuilder;->append(I)Ljava/lang/StringBuilder;

    move-result-object v8

    invoke-virtual {v8}, Ljava/lang/StringBuilder;->toString()Ljava/lang/String;

    move-result-object v1

    .line 814
    .local v1, playerDScore:Ljava/lang/String;
    :goto_4
    const/16 v8, 0x212

    const/16 v9, 0x8c

    invoke-virtual {p0, p1, v3, v8, v9}, Lcom/philzhu/www/ddz/GameScreen;->drawScore(Lcom/philzhu/www/framework/Graphics;Ljava/lang/String;II)V

    .line 815
    const/16 v8, 0x212

    const/16 v9, 0xe1

    invoke-virtual {p0, p1, v5, v8, v9}, Lcom/philzhu/www/ddz/GameScreen;->drawScore(Lcom/philzhu/www/framework/Graphics;Ljava/lang/String;II)V

    .line 816
    const/16 v8, 0x212

    const/16 v9, 0x136

    invoke-virtual {p0, p1, v1, v8, v9}, Lcom/philzhu/www/ddz/GameScreen;->drawScore(Lcom/philzhu/www/framework/Graphics;Ljava/lang/String;II)V

    .line 817
    return-void

    .line 710
    .end local v1           #playerDScore:Ljava/lang/String;
    .end local v2           #playerDWin:Z
    .end local v3           #playerMScore:Ljava/lang/String;
    .end local v5           #playerUScore:Ljava/lang/String;
    .end local v6           #playerUWin:Z
    :cond_0
    const/4 v8, 0x3

    if-ne v0, v8, :cond_1

    .line 712
    const/4 v2, 0x0

    .line 713
    .restart local v2       #playerDWin:Z
    const/4 v6, 0x1

    .restart local v6       #playerUWin:Z
    goto/16 :goto_0

    .line 717
    .end local v2           #playerDWin:Z
    .end local v6           #playerUWin:Z
    :cond_1
    const/4 v2, 0x1

    .line 718
    .restart local v2       #playerDWin:Z
    const/4 v6, 0x0

    .restart local v6       #playerUWin:Z
    goto/16 :goto_0

    .line 721
    .end local v2           #playerDWin:Z
    .end local v4           #playerMWin:Z
    .end local v6           #playerUWin:Z
    :cond_2
    const/4 v8, 0x2

    if-ne v7, v8, :cond_5

    .line 723
    const/4 v6, 0x1

    .line 724
    .restart local v6       #playerUWin:Z
    const/4 v8, 0x3

    if-ne v0, v8, :cond_3

    .line 726
    const/4 v2, 0x0

    .line 727
    .restart local v2       #playerDWin:Z
    const/4 v4, 0x1

    .restart local v4       #playerMWin:Z
    goto/16 :goto_0

    .line 729
    .end local v2           #playerDWin:Z
    .end local v4           #playerMWin:Z
    :cond_3
    const/4 v8, 0x1

    if-ne v0, v8, :cond_4

    .line 731
    const/4 v4, 0x0

    .line 732
    .restart local v4       #playerMWin:Z
    const/4 v2, 0x1

    .restart local v2       #playerDWin:Z
    goto/16 :goto_0

    .line 736
    .end local v2           #playerDWin:Z
    .end local v4           #playerMWin:Z
    :cond_4
    const/4 v4, 0x0

    .line 737
    .restart local v4       #playerMWin:Z
    const/4 v2, 0x0

    .restart local v2       #playerDWin:Z
    goto/16 :goto_0

    .line 742
    .end local v2           #playerDWin:Z
    .end local v4           #playerMWin:Z
    .end local v6           #playerUWin:Z
    :cond_5
    const/4 v2, 0x1

    .line 743
    .restart local v2       #playerDWin:Z
    const/4 v8, 0x3

    if-ne v0, v8, :cond_6

    .line 745
    const/4 v6, 0x0

    .line 746
    .restart local v6       #playerUWin:Z
    const/4 v4, 0x0

    .restart local v4       #playerMWin:Z
    goto/16 :goto_0

    .line 748
    .end local v4           #playerMWin:Z
    .end local v6           #playerUWin:Z
    :cond_6
    const/4 v8, 0x1

    if-ne v0, v8, :cond_7

    .line 750
    const/4 v4, 0x0

    .line 751
    .restart local v4       #playerMWin:Z
    const/4 v6, 0x1

    .restart local v6       #playerUWin:Z
    goto/16 :goto_0

    .line 755
    .end local v4           #playerMWin:Z
    .end local v6           #playerUWin:Z
    :cond_7
    const/4 v4, 0x1

    .line 756
    .restart local v4       #playerMWin:Z
    const/4 v6, 0x0

    .restart local v6       #playerUWin:Z
    goto/16 :goto_0

    .line 767
    :cond_8
    sget-object v8, Lcom/philzhu/www/ddz/Assets;->lose:Lcom/philzhu/www/framework/Pixmap;

    const/16 v9, 0x1c2

    const/16 v10, 0x7d

    invoke-interface {p1, v8, v9, v10}, Lcom/philzhu/www/framework/Graphics;->drawPixmap(Lcom/philzhu/www/framework/Pixmap;II)V

    .line 768
    sget-object v8, Lcom/philzhu/www/ddz/Assets;->minus:Lcom/philzhu/www/framework/Pixmap;

    sget-object v9, Lcom/philzhu/www/ddz/Assets;->win:Lcom/philzhu/www/framework/Pixmap;

    const/high16 v10, 0x43f5

    const/high16 v11, 0x42fa

    invoke-interface {p1, v9, v10, v11}, Lcom/philzhu/www/framework/Graphics;->getCenter(Lcom/philzhu/www/framework/Pixmap;FF)Landroid/graphics/Point;

    move-result-object v9

    invoke-interface {p1, v8, v9}, Lcom/philzhu/www/framework/Graphics;->drawPixmapInParentCenter(Lcom/philzhu/www/framework/Pixmap;Landroid/graphics/Point;)V

    goto/16 :goto_1

    .line 778
    :cond_9
    sget-object v8, Lcom/philzhu/www/ddz/Assets;->lose:Lcom/philzhu/www/framework/Pixmap;

    const/16 v9, 0x1c2

    const/16 v10, 0xd2

    invoke-interface {p1, v8, v9, v10}, Lcom/philzhu/www/framework/Graphics;->drawPixmap(Lcom/philzhu/www/framework/Pixmap;II)V

    .line 779
    sget-object v8, Lcom/philzhu/www/ddz/Assets;->minus:Lcom/philzhu/www/framework/Pixmap;

    sget-object v9, Lcom/philzhu/www/ddz/Assets;->lose:Lcom/philzhu/www/framework/Pixmap;

    const/high16 v10, 0x43f5

    const/high16 v11, 0x4352

    invoke-interface {p1, v9, v10, v11}, Lcom/philzhu/www/framework/Graphics;->getCenter(Lcom/philzhu/www/framework/Pixmap;FF)Landroid/graphics/Point;

    move-result-object v9

    invoke-interface {p1, v8, v9}, Lcom/philzhu/www/framework/Graphics;->drawPixmapInParentCenter(Lcom/philzhu/www/framework/Pixmap;Landroid/graphics/Point;)V

    goto/16 :goto_2

    .line 789
    :cond_a
    sget-object v8, Lcom/philzhu/www/ddz/Assets;->lose:Lcom/philzhu/www/framework/Pixmap;

    const/16 v9, 0x1c2

    const/16 v10, 0x127

    invoke-interface {p1, v8, v9, v10}, Lcom/philzhu/www/framework/Graphics;->drawPixmap(Lcom/philzhu/www/framework/Pixmap;II)V

    .line 790
    sget-object v8, Lcom/philzhu/www/ddz/Assets;->minus:Lcom/philzhu/www/framework/Pixmap;

    sget-object v9, Lcom/philzhu/www/ddz/Assets;->lose:Lcom/philzhu/www/framework/Pixmap;

    const/high16 v10, 0x43f5

    const v11, 0x43938000

    invoke-interface {p1, v9, v10, v11}, Lcom/philzhu/www/framework/Graphics;->getCenter(Lcom/philzhu/www/framework/Pixmap;FF)Landroid/graphics/Point;

    move-result-object v9

    invoke-interface {p1, v8, v9}, Lcom/philzhu/www/framework/Graphics;->drawPixmapInParentCenter(Lcom/philzhu/www/framework/Pixmap;Landroid/graphics/Point;)V

    goto/16 :goto_3

    .line 800
    :cond_b
    const/4 v8, 0x3

    if-ne v0, v8, :cond_c

    .line 802
    new-instance v8, Ljava/lang/StringBuilder;

    invoke-direct {v8}, Ljava/lang/StringBuilder;-><init>()V

    iget v9, p0, Lcom/philzhu/www/ddz/GameScreen;->baseScore:I

    invoke-virtual {v8, v9}, Ljava/lang/StringBuilder;->append(I)Ljava/lang/StringBuilder;

    move-result-object v8

    invoke-virtual {v8}, Ljava/lang/StringBuilder;->toString()Ljava/lang/String;

    move-result-object v3

    .line 803
    .restart local v3       #playerMScore:Ljava/lang/String;
    new-instance v8, Ljava/lang/StringBuilder;

    invoke-direct {v8}, Ljava/lang/StringBuilder;-><init>()V

    iget v9, p0, Lcom/philzhu/www/ddz/GameScreen;->baseScore:I

    invoke-virtual {v8, v9}, Ljava/lang/StringBuilder;->append(I)Ljava/lang/StringBuilder;

    move-result-object v8

    invoke-virtual {v8}, Ljava/lang/StringBuilder;->toString()Ljava/lang/String;

    move-result-object v5

    .line 804
    .restart local v5       #playerUScore:Ljava/lang/String;
    new-instance v8, Ljava/lang/StringBuilder;

    invoke-direct {v8}, Ljava/lang/StringBuilder;-><init>()V

    iget v9, p0, Lcom/philzhu/www/ddz/GameScreen;->baseScore:I

    mul-int/lit8 v9, v9, 0x2

    invoke-virtual {v8, v9}, Ljava/lang/StringBuilder;->append(I)Ljava/lang/StringBuilder;

    move-result-object v8

    invoke-virtual {v8}, Ljava/lang/StringBuilder;->toString()Ljava/lang/String;

    move-result-object v1

    .restart local v1       #playerDScore:Ljava/lang/String;
    goto/16 :goto_4

    .line 808
    .end local v1           #playerDScore:Ljava/lang/String;
    .end local v3           #playerMScore:Ljava/lang/String;
    .end local v5           #playerUScore:Ljava/lang/String;
    :cond_c
    new-instance v8, Ljava/lang/StringBuilder;

    invoke-direct {v8}, Ljava/lang/StringBuilder;-><init>()V

    iget v9, p0, Lcom/philzhu/www/ddz/GameScreen;->baseScore:I

    invoke-virtual {v8, v9}, Ljava/lang/StringBuilder;->append(I)Ljava/lang/StringBuilder;

    move-result-object v8

    invoke-virtual {v8}, Ljava/lang/StringBuilder;->toString()Ljava/lang/String;

    move-result-object v3

    .line 809
    .restart local v3       #playerMScore:Ljava/lang/String;
    new-instance v8, Ljava/lang/StringBuilder;

    invoke-direct {v8}, Ljava/lang/StringBuilder;-><init>()V

    iget v9, p0, Lcom/philzhu/www/ddz/GameScreen;->baseScore:I

    mul-int/lit8 v9, v9, 0x2

    invoke-virtual {v8, v9}, Ljava/lang/StringBuilder;->append(I)Ljava/lang/StringBuilder;

    move-result-object v8

    invoke-virtual {v8}, Ljava/lang/StringBuilder;->toString()Ljava/lang/String;

    move-result-object v5

    .line 810
    .restart local v5       #playerUScore:Ljava/lang/String;
    new-instance v8, Ljava/lang/StringBuilder;

    invoke-direct {v8}, Ljava/lang/StringBuilder;-><init>()V

    iget v9, p0, Lcom/philzhu/www/ddz/GameScreen;->baseScore:I

    invoke-virtual {v8, v9}, Ljava/lang/StringBuilder;->append(I)Ljava/lang/StringBuilder;

    move-result-object v8

    invoke-virtual {v8}, Ljava/lang/StringBuilder;->toString()Ljava/lang/String;

    move-result-object v1

    .restart local v1       #playerDScore:Ljava/lang/String;
    goto/16 :goto_4
.end method

.method private drawWorld(Lcom/philzhu/www/ddz/World;)V
    .locals 27
    .parameter "world"

    .prologue
    .line 380
    move-object/from16 v0, p0

    iget-object v0, v0, Lcom/philzhu/www/ddz/GameScreen;->game:Lcom/philzhu/www/framework/Game;

    move-object v7, v0

    invoke-interface {v7}, Lcom/philzhu/www/framework/Game;->getGraphics()Lcom/philzhu/www/framework/Graphics;

    move-result-object v5

    .line 381
    .local v5, g:Lcom/philzhu/www/framework/Graphics;
    move-object/from16 v0, p1

    iget-object v0, v0, Lcom/philzhu/www/ddz/World;->playerM:Lcom/philzhu/www/ddz/Player;

    move-object/from16 v24, v0

    .line 384
    .local v24, playerM:Lcom/philzhu/www/ddz/Player;
    move-object/from16 v0, v24

    iget-object v0, v0, Lcom/philzhu/www/ddz/Player;->cards:Ljava/util/Vector;

    move-object v7, v0

    invoke-virtual {v7}, Ljava/util/Vector;->size()I

    move-result v19

    .line 385
    .local v19, len:I
    const/16 v20, 0x23

    .line 386
    .local v20, offsetX:I
    const/16 v21, 0x130

    .line 387
    .local v21, offsetY:I
    const/16 v7, 0x320

    add-int v8, v20, v20

    add-int/lit8 v8, v8, 0x5c

    sub-int/2addr v7, v8

    int-to-float v7, v7

    const/4 v8, 0x1

    sub-int v8, v19, v8

    int-to-float v8, v8

    div-float/2addr v7, v8

    move v0, v7

    move-object/from16 v1, p0

    iput v0, v1, Lcom/philzhu/www/ddz/GameScreen;->cardOffset:F

    .line 388
    move-object/from16 v0, p0

    iget v0, v0, Lcom/philzhu/www/ddz/GameScreen;->cardOffset:F

    move v7, v0

    const/high16 v8, 0x425c

    cmpl-float v7, v7, v8

    if-lez v7, :cond_0

    .line 390
    const/16 v7, 0x320

    const/4 v8, 0x1

    sub-int v8, v19, v8

    mul-int/lit8 v8, v8, 0x37

    sub-int/2addr v7, v8

    const/16 v8, 0x5c

    sub-int/2addr v7, v8

    div-int/lit8 v20, v7, 0x2

    .line 391
    const/high16 v7, 0x425c

    move v0, v7

    move-object/from16 v1, p0

    iput v0, v1, Lcom/philzhu/www/ddz/GameScreen;->cardOffset:F

    .line 393
    :cond_0
    const/16 v7, 0x320

    sub-int v7, v7, v20

    const/16 v8, 0x1db

    move-object/from16 v0, p0

    move/from16 v1, v20

    move/from16 v2, v21

    move v3, v7

    move v4, v8

    invoke-direct {v0, v1, v2, v3, v4}, Lcom/philzhu/www/ddz/GameScreen;->setCardsTouchZone(IIII)V

    .line 394
    const/16 v18, 0x0

    .local v18, i:I
    :goto_0
    move/from16 v0, v18

    move/from16 v1, v19

    if-lt v0, v1, :cond_8

    .line 407
    const/16 v7, 0x320

    sget-object v8, Lcom/philzhu/www/ddz/Assets;->bigBanner:Lcom/philzhu/www/framework/Pixmap;

    invoke-interface {v8}, Lcom/philzhu/www/framework/Pixmap;->getRawWidth()I

    move-result v8

    sub-int/2addr v7, v8

    div-int/lit8 v11, v7, 0x2

    .line 408
    .local v11, bannerX:I
    const/4 v12, 0x0

    .line 409
    .local v12, bannerY:I
    const/4 v13, 0x0

    .line 410
    .local v13, srcX:I
    sget-object v7, Lcom/philzhu/www/ddz/Assets;->bigBanner:Lcom/philzhu/www/framework/Pixmap;

    invoke-interface {v7}, Lcom/philzhu/www/framework/Pixmap;->getRawHeight()I

    move-result v7

    const/16 v8, 0x3f

    sub-int/2addr v7, v8

    move-object/from16 v0, p1

    iget v0, v0, Lcom/philzhu/www/ddz/World;->keeperOffset:I

    move v8, v0

    sub-int v14, v7, v8

    .line 411
    .local v14, srcY:I
    sget-object v7, Lcom/philzhu/www/ddz/Assets;->bigBanner:Lcom/philzhu/www/framework/Pixmap;

    invoke-interface {v7}, Lcom/philzhu/www/framework/Pixmap;->getRawWidth()I

    move-result v15

    .line 412
    .local v15, srcWidth:I
    move-object/from16 v0, p1

    iget v0, v0, Lcom/philzhu/www/ddz/World;->keeperOffset:I

    move v7, v0

    add-int/lit8 v16, v7, 0x3f

    .line 413
    .local v16, srcHeight:I
    sget-object v10, Lcom/philzhu/www/ddz/Assets;->bigBanner:Lcom/philzhu/www/framework/Pixmap;

    move-object v9, v5

    invoke-interface/range {v9 .. v16}, Lcom/philzhu/www/framework/Graphics;->drawPixmap(Lcom/philzhu/www/framework/Pixmap;IIIIII)V

    .line 415
    move-object/from16 v0, p1

    iget v0, v0, Lcom/philzhu/www/ddz/World;->keeperOffset:I

    move v7, v0

    sget-object v8, Lcom/philzhu/www/ddz/Assets;->bigBanner:Lcom/philzhu/www/framework/Pixmap;

    invoke-interface {v8}, Lcom/philzhu/www/framework/Pixmap;->getRawHeight()I

    move-result v8

    const/16 v9, 0x3f

    sub-int/2addr v8, v9

    if-ne v7, v8, :cond_1

    .line 417
    move-object/from16 v0, p0

    move-object v1, v5

    invoke-direct {v0, v1}, Lcom/philzhu/www/ddz/GameScreen;->drawKeeperCards(Lcom/philzhu/www/framework/Graphics;)V

    .line 421
    :cond_1
    sget-object v7, Lcom/philzhu/www/ddz/Assets;->gold:Lcom/philzhu/www/framework/Pixmap;

    const/16 v8, 0x82

    const/16 v9, 0xa

    invoke-interface {v5, v7, v8, v9}, Lcom/philzhu/www/framework/Graphics;->drawPixmap(Lcom/philzhu/www/framework/Pixmap;II)V

    .line 422
    sget v7, Lcom/philzhu/www/ddz/Settings;->score:I

    if-gez v7, :cond_2

    .line 424
    sget-object v7, Lcom/philzhu/www/ddz/Assets;->minus:Lcom/philzhu/www/framework/Pixmap;

    sget-object v8, Lcom/philzhu/www/ddz/Assets;->gold:Lcom/philzhu/www/framework/Pixmap;

    sget-object v9, Lcom/philzhu/www/ddz/Assets;->gold:Lcom/philzhu/www/framework/Pixmap;

    invoke-interface {v9}, Lcom/philzhu/www/framework/Pixmap;->getRawWidth()I

    move-result v9

    add-int/lit16 v9, v9, 0x82

    add-int/lit8 v9, v9, 0x5

    int-to-float v9, v9

    const/high16 v10, 0x4120

    invoke-interface {v5, v8, v9, v10}, Lcom/philzhu/www/framework/Graphics;->getCenter(Lcom/philzhu/www/framework/Pixmap;FF)Landroid/graphics/Point;

    move-result-object v8

    invoke-interface {v5, v7, v8}, Lcom/philzhu/www/framework/Graphics;->drawPixmapInParentCenter(Lcom/philzhu/www/framework/Pixmap;Landroid/graphics/Point;)V

    .line 426
    :cond_2
    new-instance v7, Ljava/lang/StringBuilder;

    invoke-direct {v7}, Ljava/lang/StringBuilder;-><init>()V

    sget v8, Lcom/philzhu/www/ddz/Settings;->score:I

    invoke-virtual {v7, v8}, Ljava/lang/StringBuilder;->append(I)Ljava/lang/StringBuilder;

    move-result-object v7

    invoke-virtual {v7}, Ljava/lang/StringBuilder;->toString()Ljava/lang/String;

    move-result-object v7

    sget-object v8, Lcom/philzhu/www/ddz/Assets;->gold:Lcom/philzhu/www/framework/Pixmap;

    invoke-interface {v8}, Lcom/philzhu/www/framework/Pixmap;->getRawWidth()I

    move-result v8

    add-int/lit16 v8, v8, 0x82

    add-int/lit8 v8, v8, 0xa

    const/16 v9, 0xf

    move-object/from16 v0, p0

    move-object v1, v5

    move-object v2, v7

    move v3, v8

    move v4, v9

    invoke-virtual {v0, v1, v2, v3, v4}, Lcom/philzhu/www/ddz/GameScreen;->drawScore(Lcom/philzhu/www/framework/Graphics;Ljava/lang/String;II)V

    .line 430
    sget-object v7, Lcom/philzhu/www/ddz/Assets;->playerU:Lcom/philzhu/www/framework/Pixmap;

    const/4 v8, 0x3

    const/4 v9, 0x3

    invoke-interface {v5, v7, v8, v9}, Lcom/philzhu/www/framework/Graphics;->drawPixmap(Lcom/philzhu/www/framework/Pixmap;II)V

    .line 431
    move-object/from16 v0, p1

    iget v0, v0, Lcom/philzhu/www/ddz/World;->dizhuIndex:I

    move v7, v0

    const/4 v8, 0x2

    if-ne v7, v8, :cond_3

    .line 433
    sget-object v7, Lcom/philzhu/www/ddz/Assets;->gameoverDizhu:Lcom/philzhu/www/framework/Pixmap;

    sget-object v8, Lcom/philzhu/www/ddz/Assets;->playerU:Lcom/philzhu/www/framework/Pixmap;

    invoke-interface {v8}, Lcom/philzhu/www/framework/Pixmap;->getRawWidth()I

    move-result v8

    add-int/lit8 v8, v8, 0x3

    const/4 v9, 0x3

    invoke-interface {v5, v7, v8, v9}, Lcom/philzhu/www/framework/Graphics;->drawPixmap(Lcom/philzhu/www/framework/Pixmap;II)V

    .line 435
    :cond_3
    new-instance v7, Ljava/lang/StringBuilder;

    invoke-direct {v7}, Ljava/lang/StringBuilder;-><init>()V

    move-object/from16 v0, p0

    iget v0, v0, Lcom/philzhu/www/ddz/GameScreen;->upPlayerCardsNum:I

    move v8, v0

    invoke-virtual {v7, v8}, Ljava/lang/StringBuilder;->append(I)Ljava/lang/StringBuilder;

    move-result-object v7

    invoke-virtual {v7}, Ljava/lang/StringBuilder;->toString()Ljava/lang/String;

    move-result-object v7

    const/16 v8, 0x5a

    const/16 v9, 0x3c

    move-object/from16 v0, p0

    move-object v1, v5

    move-object v2, v7

    move v3, v8

    move v4, v9

    invoke-virtual {v0, v1, v2, v3, v4}, Lcom/philzhu/www/ddz/GameScreen;->drawText(Lcom/philzhu/www/framework/Graphics;Ljava/lang/String;II)V

    .line 436
    move-object/from16 v0, p0

    iget-object v0, v0, Lcom/philzhu/www/ddz/GameScreen;->state:Lcom/philzhu/www/ddz/GameScreen$GameState;

    move-object v7, v0

    sget-object v8, Lcom/philzhu/www/ddz/GameScreen$GameState;->ShowAICards:Lcom/philzhu/www/ddz/GameScreen$GameState;

    if-eq v7, v8, :cond_4

    .line 438
    const/16 v7, 0xd

    const/16 v8, 0x5a

    move-object/from16 v0, p0

    iget v0, v0, Lcom/philzhu/www/ddz/GameScreen;->upPlayerCardsNum:I

    move v9, v0

    move-object/from16 v0, p0

    move-object v1, v5

    move v2, v7

    move v3, v8

    move v4, v9

    invoke-direct {v0, v1, v2, v3, v4}, Lcom/philzhu/www/ddz/GameScreen;->drawBackLittleCards(Lcom/philzhu/www/framework/Graphics;III)V

    .line 442
    :cond_4
    const/16 v7, 0x31d

    sget-object v8, Lcom/philzhu/www/ddz/Assets;->playerD:Lcom/philzhu/www/framework/Pixmap;

    invoke-interface {v8}, Lcom/philzhu/www/framework/Pixmap;->getRawWidth()I

    move-result v8

    sub-int v22, v7, v8

    .line 443
    .local v22, playerDX:I
    const/16 v23, 0x3

    .line 444
    .local v23, playerDY:I
    sget-object v7, Lcom/philzhu/www/ddz/Assets;->playerD:Lcom/philzhu/www/framework/Pixmap;

    move-object v0, v5

    move-object v1, v7

    move/from16 v2, v22

    move/from16 v3, v23

    invoke-interface {v0, v1, v2, v3}, Lcom/philzhu/www/framework/Graphics;->drawPixmap(Lcom/philzhu/www/framework/Pixmap;II)V

    .line 445
    move-object/from16 v0, p1

    iget v0, v0, Lcom/philzhu/www/ddz/World;->dizhuIndex:I

    move v7, v0

    const/4 v8, 0x3

    if-ne v7, v8, :cond_5

    .line 447
    sget-object v7, Lcom/philzhu/www/ddz/Assets;->gameoverDizhu:Lcom/philzhu/www/framework/Pixmap;

    sget-object v8, Lcom/philzhu/www/ddz/Assets;->gameoverDizhu:Lcom/philzhu/www/framework/Pixmap;

    invoke-interface {v8}, Lcom/philzhu/www/framework/Pixmap;->getRawWidth()I

    move-result v8

    sub-int v8, v22, v8

    move-object v0, v5

    move-object v1, v7

    move v2, v8

    move/from16 v3, v23

    invoke-interface {v0, v1, v2, v3}, Lcom/philzhu/www/framework/Graphics;->drawPixmap(Lcom/philzhu/www/framework/Pixmap;II)V

    .line 449
    :cond_5
    new-instance v7, Ljava/lang/StringBuilder;

    invoke-direct {v7}, Ljava/lang/StringBuilder;-><init>()V

    move-object/from16 v0, p0

    iget v0, v0, Lcom/philzhu/www/ddz/GameScreen;->downPlayerCardsNum:I

    move v8, v0

    invoke-virtual {v7, v8}, Ljava/lang/StringBuilder;->append(I)Ljava/lang/StringBuilder;

    move-result-object v7

    invoke-virtual {v7}, Ljava/lang/StringBuilder;->toString()Ljava/lang/String;

    move-result-object v7

    const/16 v8, 0x2a8

    const/16 v9, 0x3c

    move-object/from16 v0, p0

    move-object v1, v5

    move-object v2, v7

    move v3, v8

    move v4, v9

    invoke-virtual {v0, v1, v2, v3, v4}, Lcom/philzhu/www/ddz/GameScreen;->drawText(Lcom/philzhu/www/framework/Graphics;Ljava/lang/String;II)V

    .line 450
    move-object/from16 v0, p0

    iget-object v0, v0, Lcom/philzhu/www/ddz/GameScreen;->state:Lcom/philzhu/www/ddz/GameScreen$GameState;

    move-object v7, v0

    sget-object v8, Lcom/philzhu/www/ddz/GameScreen$GameState;->ShowAICards:Lcom/philzhu/www/ddz/GameScreen$GameState;

    if-eq v7, v8, :cond_6

    .line 452
    const/16 v7, 0x327

    sget-object v8, Lcom/philzhu/www/ddz/Assets;->playerD:Lcom/philzhu/www/framework/Pixmap;

    invoke-interface {v8}, Lcom/philzhu/www/framework/Pixmap;->getRawWidth()I

    move-result v8

    sub-int/2addr v7, v8

    const/16 v8, 0x5a

    move-object/from16 v0, p0

    iget v0, v0, Lcom/philzhu/www/ddz/GameScreen;->downPlayerCardsNum:I

    move v9, v0

    move-object/from16 v0, p0

    move-object v1, v5

    move v2, v7

    move v3, v8

    move v4, v9

    invoke-direct {v0, v1, v2, v3, v4}, Lcom/philzhu/www/ddz/GameScreen;->drawBackLittleCards(Lcom/philzhu/www/framework/Graphics;III)V

    .line 456
    :cond_6
    const/16 v25, 0x3

    .line 457
    .local v25, playerMX:I
    const/16 v7, 0x126

    sget-object v8, Lcom/philzhu/www/ddz/Assets;->playerM:Lcom/philzhu/www/framework/Pixmap;

    invoke-interface {v8}, Lcom/philzhu/www/framework/Pixmap;->getRawHeight()I

    move-result v8

    sub-int v26, v7, v8

    .line 458
    .local v26, playerMY:I
    sget-object v7, Lcom/philzhu/www/ddz/Assets;->playerM:Lcom/philzhu/www/framework/Pixmap;

    move-object v0, v5

    move-object v1, v7

    move/from16 v2, v25

    move/from16 v3, v26

    invoke-interface {v0, v1, v2, v3}, Lcom/philzhu/www/framework/Graphics;->drawPixmap(Lcom/philzhu/www/framework/Pixmap;II)V

    .line 459
    move-object/from16 v0, p1

    iget v0, v0, Lcom/philzhu/www/ddz/World;->dizhuIndex:I

    move v7, v0

    const/4 v8, 0x1

    if-ne v7, v8, :cond_7

    .line 461
    sget-object v7, Lcom/philzhu/www/ddz/Assets;->gameoverDizhu:Lcom/philzhu/www/framework/Pixmap;

    sget-object v8, Lcom/philzhu/www/ddz/Assets;->playerM:Lcom/philzhu/www/framework/Pixmap;

    invoke-interface {v8}, Lcom/philzhu/www/framework/Pixmap;->getRawWidth()I

    move-result v8

    add-int v8, v8, v25

    move-object v0, v5

    move-object v1, v7

    move v2, v8

    move/from16 v3, v26

    invoke-interface {v0, v1, v2, v3}, Lcom/philzhu/www/framework/Graphics;->drawPixmap(Lcom/philzhu/www/framework/Pixmap;II)V

    .line 463
    :cond_7
    return-void

    .line 395
    .end local v11           #bannerX:I
    .end local v12           #bannerY:I
    .end local v13           #srcX:I
    .end local v14           #srcY:I
    .end local v15           #srcWidth:I
    .end local v16           #srcHeight:I
    .end local v22           #playerDX:I
    .end local v23           #playerDY:I
    .end local v25           #playerMX:I
    .end local v26           #playerMY:I
    :cond_8
    move/from16 v8, v21

    .line 396
    .local v8, drawY:I
    move-object/from16 v0, v24

    iget-object v0, v0, Lcom/philzhu/www/ddz/Player;->cards:Ljava/util/Vector;

    move-object v7, v0

    move-object v0, v7

    move/from16 v1, v18

    invoke-virtual {v0, v1}, Ljava/util/Vector;->elementAt(I)Ljava/lang/Object;

    move-result-object v17

    check-cast v17, Lcom/philzhu/www/ddz/Card;

    .line 397
    .local v17, card:Lcom/philzhu/www/ddz/Card;
    move-object/from16 v0, v17

    iget-boolean v0, v0, Lcom/philzhu/www/ddz/Card;->isPicked:Z

    move v7, v0

    if-eqz v7, :cond_9

    .line 399
    add-int/lit8 v8, v8, -0xa

    .line 402
    :cond_9
    move-object/from16 v0, p0

    move-object/from16 v1, v17

    invoke-direct {v0, v1}, Lcom/philzhu/www/ddz/GameScreen;->getCardPixmap(Lcom/philzhu/www/ddz/Card;)Lcom/philzhu/www/framework/Pixmap;

    move-result-object v6

    .line 403
    .local v6, cardPixmap:Lcom/philzhu/www/framework/Pixmap;
    move-object/from16 v0, p0

    iget v0, v0, Lcom/philzhu/www/ddz/GameScreen;->cardOffset:F

    move v7, v0

    float-to-int v7, v7

    mul-int v7, v7, v18

    add-int v7, v7, v20

    const/16 v9, 0x5c

    const/16 v10, 0x7e

    invoke-interface/range {v5 .. v10}, Lcom/philzhu/www/framework/Graphics;->drawPixmap(Lcom/philzhu/www/framework/Pixmap;IIII)V

    .line 394
    add-int/lit8 v18, v18, 0x1

    goto/16 :goto_0
.end method

.method private getCardPixmap(Lcom/philzhu/www/ddz/Card;)Lcom/philzhu/www/framework/Pixmap;
    .locals 4
    .parameter "card"

    .prologue
    const/4 v3, 0x1

    .line 1164
    iget v1, p1, Lcom/philzhu/www/ddz/Card;->suit:I

    if-ne v1, v3, :cond_0

    .line 1166
    sget-object v1, Lcom/philzhu/www/ddz/Assets;->club:[Lcom/philzhu/www/framework/Pixmap;

    iget v2, p1, Lcom/philzhu/www/ddz/Card;->index:I

    aget-object v0, v1, v2

    .line 1188
    .local v0, cardPixmap:Lcom/philzhu/www/framework/Pixmap;
    :goto_0
    return-object v0

    .line 1168
    .end local v0           #cardPixmap:Lcom/philzhu/www/framework/Pixmap;
    :cond_0
    iget v1, p1, Lcom/philzhu/www/ddz/Card;->suit:I

    if-nez v1, :cond_1

    .line 1170
    sget-object v1, Lcom/philzhu/www/ddz/Assets;->diamond:[Lcom/philzhu/www/framework/Pixmap;

    iget v2, p1, Lcom/philzhu/www/ddz/Card;->index:I

    aget-object v0, v1, v2

    .restart local v0       #cardPixmap:Lcom/philzhu/www/framework/Pixmap;
    goto :goto_0

    .line 1172
    .end local v0           #cardPixmap:Lcom/philzhu/www/framework/Pixmap;
    :cond_1
    iget v1, p1, Lcom/philzhu/www/ddz/Card;->suit:I

    const/4 v2, 0x2

    if-ne v1, v2, :cond_2

    .line 1174
    sget-object v1, Lcom/philzhu/www/ddz/Assets;->heart:[Lcom/philzhu/www/framework/Pixmap;

    iget v2, p1, Lcom/philzhu/www/ddz/Card;->index:I

    aget-object v0, v1, v2

    .restart local v0       #cardPixmap:Lcom/philzhu/www/framework/Pixmap;
    goto :goto_0

    .line 1176
    .end local v0           #cardPixmap:Lcom/philzhu/www/framework/Pixmap;
    :cond_2
    iget v1, p1, Lcom/philzhu/www/ddz/Card;->suit:I

    const/4 v2, 0x3

    if-ne v1, v2, :cond_3

    .line 1178
    sget-object v1, Lcom/philzhu/www/ddz/Assets;->spade:[Lcom/philzhu/www/framework/Pixmap;

    iget v2, p1, Lcom/philzhu/www/ddz/Card;->index:I

    aget-object v0, v1, v2

    .restart local v0       #cardPixmap:Lcom/philzhu/www/framework/Pixmap;
    goto :goto_0

    .line 1180
    .end local v0           #cardPixmap:Lcom/philzhu/www/framework/Pixmap;
    :cond_3
    iget v1, p1, Lcom/philzhu/www/ddz/Card;->suit:I

    const/4 v2, 0x4

    if-ne v1, v2, :cond_4

    iget v1, p1, Lcom/philzhu/www/ddz/Card;->index:I

    if-ne v1, v3, :cond_4

    .line 1182
    sget-object v0, Lcom/philzhu/www/ddz/Assets;->sJoker:Lcom/philzhu/www/framework/Pixmap;

    .restart local v0       #cardPixmap:Lcom/philzhu/www/framework/Pixmap;
    goto :goto_0

    .line 1186
    .end local v0           #cardPixmap:Lcom/philzhu/www/framework/Pixmap;
    :cond_4
    sget-object v0, Lcom/philzhu/www/ddz/Assets;->bJoker:Lcom/philzhu/www/framework/Pixmap;

    .restart local v0       #cardPixmap:Lcom/philzhu/www/framework/Pixmap;
    goto :goto_0
.end method

.method private getCardsIndex(I)I
    .locals 6
    .parameter "x"

    .prologue
    .line 1243
    iget-object v2, p0, Lcom/philzhu/www/ddz/GameScreen;->cardsTouchZone:Landroid/graphics/Rect;

    iget v2, v2, Landroid/graphics/Rect;->left:I

    sub-int v2, p1, v2

    int-to-float v2, v2

    iget v3, p0, Lcom/philzhu/www/ddz/GameScreen;->cardOffset:F

    div-float/2addr v2, v3

    float-to-int v0, v2

    .line 1244
    .local v0, index:I
    iget-object v2, p0, Lcom/philzhu/www/ddz/GameScreen;->world:Lcom/philzhu/www/ddz/World;

    iget-object v2, v2, Lcom/philzhu/www/ddz/World;->playerM:Lcom/philzhu/www/ddz/Player;

    iget-object v2, v2, Lcom/philzhu/www/ddz/Player;->cards:Ljava/util/Vector;

    invoke-virtual {v2}, Ljava/util/Vector;->size()I

    move-result v1

    .line 1246
    .local v1, size:I
    int-to-float v2, p1

    iget-object v3, p0, Lcom/philzhu/www/ddz/GameScreen;->cardsTouchZone:Landroid/graphics/Rect;

    iget v3, v3, Landroid/graphics/Rect;->right:I

    int-to-float v3, v3

    const/high16 v4, 0x42b8

    iget v5, p0, Lcom/philzhu/www/ddz/GameScreen;->cardOffset:F

    sub-float/2addr v4, v5

    sub-float/2addr v3, v4

    cmpl-float v2, v2, v3

    if-lez v2, :cond_0

    .line 1248
    iget-object v2, p0, Lcom/philzhu/www/ddz/GameScreen;->world:Lcom/philzhu/www/ddz/World;

    iget-object v2, v2, Lcom/philzhu/www/ddz/World;->playerM:Lcom/philzhu/www/ddz/Player;

    iget-object v2, v2, Lcom/philzhu/www/ddz/Player;->cards:Ljava/util/Vector;

    invoke-virtual {v2}, Ljava/util/Vector;->size()I

    move-result v2

    const/4 v3, 0x1

    sub-int/2addr v2, v3

    .line 1256
    :goto_0
    return v2

    .line 1250
    :cond_0
    if-ge v0, v1, :cond_1

    if-ltz v0, :cond_1

    move v2, v0

    .line 1252
    goto :goto_0

    .line 1256
    :cond_1
    const/4 v2, -0x1

    goto :goto_0
.end method

.method private getSmallCardPixmap(Lcom/philzhu/www/ddz/Card;)Lcom/philzhu/www/framework/Pixmap;
    .locals 4
    .parameter "card"

    .prologue
    const/4 v3, 0x1

    .line 1194
    iget v1, p1, Lcom/philzhu/www/ddz/Card;->suit:I

    if-ne v1, v3, :cond_0

    .line 1196
    sget-object v1, Lcom/philzhu/www/ddz/Assets;->clubS:[Lcom/philzhu/www/framework/Pixmap;

    iget v2, p1, Lcom/philzhu/www/ddz/Card;->index:I

    aget-object v0, v1, v2

    .line 1218
    .local v0, cardPixmap:Lcom/philzhu/www/framework/Pixmap;
    :goto_0
    return-object v0

    .line 1198
    .end local v0           #cardPixmap:Lcom/philzhu/www/framework/Pixmap;
    :cond_0
    iget v1, p1, Lcom/philzhu/www/ddz/Card;->suit:I

    if-nez v1, :cond_1

    .line 1200
    sget-object v1, Lcom/philzhu/www/ddz/Assets;->diamondS:[Lcom/philzhu/www/framework/Pixmap;

    iget v2, p1, Lcom/philzhu/www/ddz/Card;->index:I

    aget-object v0, v1, v2

    .restart local v0       #cardPixmap:Lcom/philzhu/www/framework/Pixmap;
    goto :goto_0

    .line 1202
    .end local v0           #cardPixmap:Lcom/philzhu/www/framework/Pixmap;
    :cond_1
    iget v1, p1, Lcom/philzhu/www/ddz/Card;->suit:I

    const/4 v2, 0x2

    if-ne v1, v2, :cond_2

    .line 1204
    sget-object v1, Lcom/philzhu/www/ddz/Assets;->heartS:[Lcom/philzhu/www/framework/Pixmap;

    iget v2, p1, Lcom/philzhu/www/ddz/Card;->index:I

    aget-object v0, v1, v2

    .restart local v0       #cardPixmap:Lcom/philzhu/www/framework/Pixmap;
    goto :goto_0

    .line 1206
    .end local v0           #cardPixmap:Lcom/philzhu/www/framework/Pixmap;
    :cond_2
    iget v1, p1, Lcom/philzhu/www/ddz/Card;->suit:I

    const/4 v2, 0x3

    if-ne v1, v2, :cond_3

    .line 1208
    sget-object v1, Lcom/philzhu/www/ddz/Assets;->spadeS:[Lcom/philzhu/www/framework/Pixmap;

    iget v2, p1, Lcom/philzhu/www/ddz/Card;->index:I

    aget-object v0, v1, v2

    .restart local v0       #cardPixmap:Lcom/philzhu/www/framework/Pixmap;
    goto :goto_0

    .line 1210
    .end local v0           #cardPixmap:Lcom/philzhu/www/framework/Pixmap;
    :cond_3
    iget v1, p1, Lcom/philzhu/www/ddz/Card;->suit:I

    const/4 v2, 0x4

    if-ne v1, v2, :cond_4

    iget v1, p1, Lcom/philzhu/www/ddz/Card;->index:I

    if-ne v1, v3, :cond_4

    .line 1212
    sget-object v0, Lcom/philzhu/www/ddz/Assets;->sJoker:Lcom/philzhu/www/framework/Pixmap;

    .restart local v0       #cardPixmap:Lcom/philzhu/www/framework/Pixmap;
    goto :goto_0

    .line 1216
    .end local v0           #cardPixmap:Lcom/philzhu/www/framework/Pixmap;
    :cond_4
    sget-object v0, Lcom/philzhu/www/ddz/Assets;->bJoker:Lcom/philzhu/www/framework/Pixmap;

    .restart local v0       #cardPixmap:Lcom/philzhu/www/framework/Pixmap;
    goto :goto_0
.end method

.method private havePickedCards()Z
    .locals 3

    .prologue
    .line 1262
    iget-object v2, p0, Lcom/philzhu/www/ddz/GameScreen;->world:Lcom/philzhu/www/ddz/World;

    iget-object v2, v2, Lcom/philzhu/www/ddz/World;->playerM:Lcom/philzhu/www/ddz/Player;

    iget-object v2, v2, Lcom/philzhu/www/ddz/Player;->cards:Ljava/util/Vector;

    invoke-virtual {v2}, Ljava/util/Vector;->size()I

    move-result v1

    .line 1263
    .local v1, size:I
    const/4 v0, 0x0

    .local v0, i:I
    :goto_0
    if-lt v0, v1, :cond_0

    .line 1270
    const/4 v2, 0x0

    :goto_1
    return v2

    .line 1265
    :cond_0
    iget-object v2, p0, Lcom/philzhu/www/ddz/GameScreen;->world:Lcom/philzhu/www/ddz/World;

    iget-object v2, v2, Lcom/philzhu/www/ddz/World;->playerM:Lcom/philzhu/www/ddz/Player;

    iget-object v2, v2, Lcom/philzhu/www/ddz/Player;->cards:Ljava/util/Vector;

    invoke-virtual {v2, v0}, Ljava/util/Vector;->elementAt(I)Ljava/lang/Object;

    move-result-object v2

    check-cast v2, Lcom/philzhu/www/ddz/Card;

    iget-boolean v2, v2, Lcom/philzhu/www/ddz/Card;->isPicked:Z

    if-eqz v2, :cond_1

    .line 1267
    const/4 v2, 0x1

    goto :goto_1

    .line 1263
    :cond_1
    add-int/lit8 v0, v0, 0x1

    goto :goto_0
.end method

.method private inCardsTouchZone(II)Z
    .locals 1
    .parameter "x"
    .parameter "y"

    .prologue
    .line 1223
    iget-object v0, p0, Lcom/philzhu/www/ddz/GameScreen;->cardsTouchZone:Landroid/graphics/Rect;

    iget v0, v0, Landroid/graphics/Rect;->left:I

    if-le p1, v0, :cond_0

    iget-object v0, p0, Lcom/philzhu/www/ddz/GameScreen;->cardsTouchZone:Landroid/graphics/Rect;

    iget v0, v0, Landroid/graphics/Rect;->right:I

    if-ge p1, v0, :cond_0

    iget-object v0, p0, Lcom/philzhu/www/ddz/GameScreen;->cardsTouchZone:Landroid/graphics/Rect;

    iget v0, v0, Landroid/graphics/Rect;->bottom:I

    if-ge p2, v0, :cond_0

    iget-object v0, p0, Lcom/philzhu/www/ddz/GameScreen;->cardsTouchZone:Landroid/graphics/Rect;

    iget v0, v0, Landroid/graphics/Rect;->top:I

    if-le p2, v0, :cond_0

    .line 1225
    const/4 v0, 0x1

    .line 1229
    :goto_0
    return v0

    :cond_0
    const/4 v0, 0x0

    goto :goto_0
.end method

.method private initButtons()V
    .locals 41

    .prologue
    .line 74
    move-object/from16 v0, p0

    iget-object v0, v0, Lcom/philzhu/www/ddz/GameScreen;->game:Lcom/philzhu/www/framework/Game;

    move-object/from16 v16, v0

    invoke-interface/range {v16 .. v16}, Lcom/philzhu/www/framework/Game;->getGraphics()Lcom/philzhu/www/framework/Graphics;

    move-result-object v3

    .line 75
    .local v3, g:Lcom/philzhu/www/framework/Graphics;
    sget-object v35, Lcom/philzhu/www/ddz/Assets;->buttonSFold:Lcom/philzhu/www/framework/Pixmap;

    .line 76
    .local v35, strFold:Lcom/philzhu/www/framework/Pixmap;
    sget-object v36, Lcom/philzhu/www/ddz/Assets;->buttonSOne:Lcom/philzhu/www/framework/Pixmap;

    .line 77
    .local v36, strOne:Lcom/philzhu/www/framework/Pixmap;
    sget-object v40, Lcom/philzhu/www/ddz/Assets;->buttonSTwo:Lcom/philzhu/www/framework/Pixmap;

    .line 78
    .local v40, strTwo:Lcom/philzhu/www/framework/Pixmap;
    sget-object v5, Lcom/philzhu/www/ddz/Assets;->buttonSThree:Lcom/philzhu/www/framework/Pixmap;

    .line 79
    .local v5, strThree:Lcom/philzhu/www/framework/Pixmap;
    sget-object v37, Lcom/philzhu/www/ddz/Assets;->buttonSPass:Lcom/philzhu/www/framework/Pixmap;

    .line 80
    .local v37, strPass:Lcom/philzhu/www/framework/Pixmap;
    sget-object v38, Lcom/philzhu/www/ddz/Assets;->buttonSReChoose:Lcom/philzhu/www/framework/Pixmap;

    .line 81
    .local v38, strRechoose:Lcom/philzhu/www/framework/Pixmap;
    sget-object v39, Lcom/philzhu/www/ddz/Assets;->buttonSTip:Lcom/philzhu/www/framework/Pixmap;

    .line 82
    .local v39, strTip:Lcom/philzhu/www/framework/Pixmap;
    sget-object v34, Lcom/philzhu/www/ddz/Assets;->buttonSCall:Lcom/philzhu/www/framework/Pixmap;

    .line 83
    .local v34, strCall:Lcom/philzhu/www/framework/Pixmap;
    const/16 v16, 0x2

    move/from16 v0, v16

    new-array v0, v0, [Lcom/philzhu/www/framework/Pixmap;

    move-object v4, v0

    .line 84
    .local v4, backgroundBtn:[Lcom/philzhu/www/framework/Pixmap;
    const/16 v16, 0x0

    sget-object v17, Lcom/philzhu/www/ddz/Assets;->buttonL:Lcom/philzhu/www/framework/Pixmap;

    aput-object v17, v4, v16

    .line 85
    const/16 v16, 0x1

    sget-object v17, Lcom/philzhu/www/ddz/Assets;->buttonLPressed:Lcom/philzhu/www/framework/Pixmap;

    aput-object v17, v4, v16

    .line 87
    const/16 v16, 0x2

    move/from16 v0, v16

    new-array v0, v0, [Lcom/philzhu/www/framework/Pixmap;

    move-object/from16 v32, v0

    .line 88
    .local v32, exitBtnOfGameover:[Lcom/philzhu/www/framework/Pixmap;
    const/16 v16, 0x0

    sget-object v17, Lcom/philzhu/www/ddz/Assets;->buttonExit:Lcom/philzhu/www/framework/Pixmap;

    aput-object v17, v32, v16

    .line 89
    const/16 v16, 0x1

    sget-object v17, Lcom/philzhu/www/ddz/Assets;->buttonExitPressed:Lcom/philzhu/www/framework/Pixmap;

    aput-object v17, v32, v16

    .line 91
    const/16 v16, 0x2

    move/from16 v0, v16

    new-array v0, v0, [Lcom/philzhu/www/framework/Pixmap;

    move-object/from16 v33, v0

    .line 92
    .local v33, nextBtnOfGameover:[Lcom/philzhu/www/framework/Pixmap;
    const/16 v16, 0x0

    sget-object v17, Lcom/philzhu/www/ddz/Assets;->buttonNext:Lcom/philzhu/www/framework/Pixmap;

    aput-object v17, v33, v16

    .line 93
    const/16 v16, 0x1

    sget-object v17, Lcom/philzhu/www/ddz/Assets;->buttonNextPressed:Lcom/philzhu/www/framework/Pixmap;

    aput-object v17, v33, v16

    .line 95
    new-instance v2, Lcom/philzhu/www/framework/impl/RButton;

    const/4 v7, 0x4

    const/16 v8, 0x1f4

    const/16 v9, 0xdc

    const/4 v10, 0x1

    move-object/from16 v6, p0

    invoke-direct/range {v2 .. v10}, Lcom/philzhu/www/framework/impl/RButton;-><init>(Lcom/philzhu/www/framework/Graphics;[Lcom/philzhu/www/framework/Pixmap;Lcom/philzhu/www/framework/Pixmap;Lcom/philzhu/www/framework/ButtonActionListener;IIIZ)V

    .line 96
    .local v2, btnThree:Lcom/philzhu/www/framework/impl/RButton;
    new-instance v6, Lcom/philzhu/www/framework/impl/RButton;

    const/4 v11, 0x3

    const/16 v12, 0x17c

    const/16 v13, 0xdc

    const/4 v14, 0x1

    move-object v7, v3

    move-object v8, v4

    move-object/from16 v9, v40

    move-object/from16 v10, p0

    invoke-direct/range {v6 .. v14}, Lcom/philzhu/www/framework/impl/RButton;-><init>(Lcom/philzhu/www/framework/Graphics;[Lcom/philzhu/www/framework/Pixmap;Lcom/philzhu/www/framework/Pixmap;Lcom/philzhu/www/framework/ButtonActionListener;IIIZ)V

    .line 97
    .local v6, btnTwo:Lcom/philzhu/www/framework/impl/RButton;
    new-instance v7, Lcom/philzhu/www/framework/impl/RButton;

    const/4 v12, 0x2

    const/16 v13, 0x104

    const/16 v14, 0xdc

    const/4 v15, 0x1

    move-object v8, v3

    move-object v9, v4

    move-object/from16 v10, v36

    move-object/from16 v11, p0

    invoke-direct/range {v7 .. v15}, Lcom/philzhu/www/framework/impl/RButton;-><init>(Lcom/philzhu/www/framework/Graphics;[Lcom/philzhu/www/framework/Pixmap;Lcom/philzhu/www/framework/Pixmap;Lcom/philzhu/www/framework/ButtonActionListener;IIIZ)V

    .line 98
    .local v7, btnOne:Lcom/philzhu/www/framework/impl/RButton;
    new-instance v8, Lcom/philzhu/www/framework/impl/RButton;

    const/4 v13, 0x1

    const/16 v14, 0x5f

    const/16 v15, 0xdc

    const/16 v16, 0x1

    move-object v9, v3

    move-object v10, v4

    move-object/from16 v11, v35

    move-object/from16 v12, p0

    invoke-direct/range {v8 .. v16}, Lcom/philzhu/www/framework/impl/RButton;-><init>(Lcom/philzhu/www/framework/Graphics;[Lcom/philzhu/www/framework/Pixmap;Lcom/philzhu/www/framework/Pixmap;Lcom/philzhu/www/framework/ButtonActionListener;IIIZ)V

    .line 99
    .local v8, btnFold:Lcom/philzhu/www/framework/impl/RButton;
    new-instance v9, Lcom/philzhu/www/framework/impl/RButton;

    const/4 v14, 0x5

    const/16 v15, 0x8c

    const/16 v16, 0xdc

    const/16 v17, 0x1

    move-object v10, v3

    move-object v11, v4

    move-object/from16 v12, v37

    move-object/from16 v13, p0

    invoke-direct/range {v9 .. v17}, Lcom/philzhu/www/framework/impl/RButton;-><init>(Lcom/philzhu/www/framework/Graphics;[Lcom/philzhu/www/framework/Pixmap;Lcom/philzhu/www/framework/Pixmap;Lcom/philzhu/www/framework/ButtonActionListener;IIIZ)V

    .line 100
    .local v9, btnPass:Lcom/philzhu/www/framework/impl/RButton;
    new-instance v10, Lcom/philzhu/www/framework/impl/RButton;

    const/4 v15, 0x6

    const/16 v16, 0x104

    const/16 v17, 0xdc

    const/16 v18, 0x1

    move-object v11, v3

    move-object v12, v4

    move-object/from16 v13, v38

    move-object/from16 v14, p0

    invoke-direct/range {v10 .. v18}, Lcom/philzhu/www/framework/impl/RButton;-><init>(Lcom/philzhu/www/framework/Graphics;[Lcom/philzhu/www/framework/Pixmap;Lcom/philzhu/www/framework/Pixmap;Lcom/philzhu/www/framework/ButtonActionListener;IIIZ)V

    .line 101
    .local v10, btnRechoose:Lcom/philzhu/www/framework/impl/RButton;
    new-instance v11, Lcom/philzhu/www/framework/impl/RButton;

    const/16 v16, 0x8

    const/16 v17, 0x1f4

    const/16 v18, 0xdc

    const/16 v19, 0x1

    move-object v12, v3

    move-object v13, v4

    move-object/from16 v14, v34

    move-object/from16 v15, p0

    invoke-direct/range {v11 .. v19}, Lcom/philzhu/www/framework/impl/RButton;-><init>(Lcom/philzhu/www/framework/Graphics;[Lcom/philzhu/www/framework/Pixmap;Lcom/philzhu/www/framework/Pixmap;Lcom/philzhu/www/framework/ButtonActionListener;IIIZ)V

    .line 102
    .local v11, btnCall:Lcom/philzhu/www/framework/impl/RButton;
    new-instance v12, Lcom/philzhu/www/framework/impl/RButton;

    const/16 v17, 0x7

    const/16 v18, 0x17c

    const/16 v19, 0xdc

    const/16 v20, 0x1

    move-object v13, v3

    move-object v14, v4

    move-object/from16 v15, v39

    move-object/from16 v16, p0

    invoke-direct/range {v12 .. v20}, Lcom/philzhu/www/framework/impl/RButton;-><init>(Lcom/philzhu/www/framework/Graphics;[Lcom/philzhu/www/framework/Pixmap;Lcom/philzhu/www/framework/Pixmap;Lcom/philzhu/www/framework/ButtonActionListener;IIIZ)V

    .line 104
    .local v12, btnTip:Lcom/philzhu/www/framework/impl/RButton;
    new-instance v13, Lcom/philzhu/www/framework/impl/RButton;

    const/16 v17, 0x9

    const/16 v18, 0xa

    const/16 v19, 0x190

    const/16 v20, 0x1

    move-object v14, v3

    move-object/from16 v15, v32

    move-object/from16 v16, p0

    invoke-direct/range {v13 .. v20}, Lcom/philzhu/www/framework/impl/RButton;-><init>(Lcom/philzhu/www/framework/Graphics;[Lcom/philzhu/www/framework/Pixmap;Lcom/philzhu/www/framework/ButtonActionListener;IIIZ)V

    .line 105
    .local v13, btnExit:Lcom/philzhu/www/framework/impl/RButton;
    new-instance v14, Lcom/philzhu/www/framework/impl/RButton;

    const/16 v18, 0xa

    const/16 v16, 0x320

    sget-object v17, Lcom/philzhu/www/ddz/Assets;->buttonExit:Lcom/philzhu/www/framework/Pixmap;

    invoke-interface/range {v17 .. v17}, Lcom/philzhu/www/framework/Pixmap;->getRawWidth()I

    move-result v17

    sub-int v16, v16, v17

    const/16 v17, 0xa

    sub-int v19, v16, v17

    const/16 v20, 0x190

    const/16 v21, 0x1

    move-object v15, v3

    move-object/from16 v16, v33

    move-object/from16 v17, p0

    invoke-direct/range {v14 .. v21}, Lcom/philzhu/www/framework/impl/RButton;-><init>(Lcom/philzhu/www/framework/Graphics;[Lcom/philzhu/www/framework/Pixmap;Lcom/philzhu/www/framework/ButtonActionListener;IIIZ)V

    .line 106
    .local v14, btnNext:Lcom/philzhu/www/framework/impl/RButton;
    const/16 v16, 0x1

    move/from16 v0, v16

    move-object v1, v13

    iput-boolean v0, v1, Lcom/philzhu/www/framework/impl/RButton;->isVisible:Z

    .line 107
    const/16 v16, 0x1

    move/from16 v0, v16

    move-object v1, v14

    iput-boolean v0, v1, Lcom/philzhu/www/framework/impl/RButton;->isVisible:Z

    .line 109
    const/16 v16, 0x2

    move/from16 v0, v16

    new-array v0, v0, [Lcom/philzhu/www/framework/Pixmap;

    move-object/from16 v17, v0

    .line 110
    .local v17, keeper:[Lcom/philzhu/www/framework/Pixmap;
    const/16 v16, 0x0

    sget-object v18, Lcom/philzhu/www/ddz/Assets;->keeper:Lcom/philzhu/www/framework/Pixmap;

    aput-object v18, v17, v16

    .line 111
    const/16 v16, 0x1

    sget-object v18, Lcom/philzhu/www/ddz/Assets;->keeperPressed:Lcom/philzhu/www/framework/Pixmap;

    aput-object v18, v17, v16

    .line 112
    new-instance v15, Lcom/philzhu/www/framework/impl/RButton;

    const/16 v19, 0xb

    const/16 v20, 0x1d6

    const/16 v21, 0xa

    const/16 v22, 0x0

    move-object/from16 v16, v3

    move-object/from16 v18, p0

    invoke-direct/range {v15 .. v22}, Lcom/philzhu/www/framework/impl/RButton;-><init>(Lcom/philzhu/www/framework/Graphics;[Lcom/philzhu/www/framework/Pixmap;Lcom/philzhu/www/framework/ButtonActionListener;IIIZ)V

    .line 114
    .local v15, btnKeeper:Lcom/philzhu/www/framework/impl/RButton;
    const/16 v16, 0x2

    move/from16 v0, v16

    new-array v0, v0, [Lcom/philzhu/www/framework/Pixmap;

    move-object/from16 v20, v0

    .line 115
    .local v20, getPoints:[Lcom/philzhu/www/framework/Pixmap;
    const/16 v16, 0x0

    sget-object v17, Lcom/philzhu/www/ddz/Assets;->freeGold:Lcom/philzhu/www/framework/Pixmap;

    .end local v17           #keeper:[Lcom/philzhu/www/framework/Pixmap;
    aput-object v17, v20, v16

    .line 116
    const/16 v16, 0x1

    sget-object v17, Lcom/philzhu/www/ddz/Assets;->freeGoldPressed:Lcom/philzhu/www/framework/Pixmap;

    aput-object v17, v20, v16

    .line 117
    new-instance v18, Lcom/philzhu/www/framework/impl/RButton;

    const/16 v22, 0xc

    const/16 v23, 0x26c

    const/16 v24, 0x5

    const/16 v25, 0x0

    move-object/from16 v19, v3

    move-object/from16 v21, p0

    invoke-direct/range {v18 .. v25}, Lcom/philzhu/www/framework/impl/RButton;-><init>(Lcom/philzhu/www/framework/Graphics;[Lcom/philzhu/www/framework/Pixmap;Lcom/philzhu/www/framework/ButtonActionListener;IIIZ)V

    .line 118
    .local v18, btnGetPoints:Lcom/philzhu/www/framework/impl/RButton;
    const/16 v16, 0x1

    move/from16 v0, v16

    move-object/from16 v1, v18

    iput-boolean v0, v1, Lcom/philzhu/www/framework/impl/RButton;->isVisible:Z

    .line 120
    const/16 v16, 0x2

    move/from16 v0, v16

    new-array v0, v0, [Lcom/philzhu/www/framework/Pixmap;

    move-object/from16 v23, v0

    .line 121
    .local v23, musicOn:[Lcom/philzhu/www/framework/Pixmap;
    const/16 v16, 0x0

    sget-object v17, Lcom/philzhu/www/ddz/Assets;->musicOn:Lcom/philzhu/www/framework/Pixmap;

    aput-object v17, v23, v16

    .line 122
    new-instance v21, Lcom/philzhu/www/framework/impl/RButton;

    const/16 v25, 0xd

    const/16 v26, 0x226

    const/16 v27, 0xa

    const/16 v28, 0x0

    move-object/from16 v22, v3

    move-object/from16 v24, p0

    invoke-direct/range {v21 .. v28}, Lcom/philzhu/www/framework/impl/RButton;-><init>(Lcom/philzhu/www/framework/Graphics;[Lcom/philzhu/www/framework/Pixmap;Lcom/philzhu/www/framework/ButtonActionListener;IIIZ)V

    .line 124
    .local v21, btnMusicOn:Lcom/philzhu/www/framework/impl/RButton;
    const/16 v16, 0x2

    move/from16 v0, v16

    new-array v0, v0, [Lcom/philzhu/www/framework/Pixmap;

    move-object/from16 v26, v0

    .line 125
    .local v26, musicOff:[Lcom/philzhu/www/framework/Pixmap;
    const/16 v16, 0x0

    sget-object v17, Lcom/philzhu/www/ddz/Assets;->musicOff:Lcom/philzhu/www/framework/Pixmap;

    aput-object v17, v26, v16

    .line 126
    new-instance v24, Lcom/philzhu/www/framework/impl/RButton;

    const/16 v28, 0xe

    const/16 v29, 0x226

    const/16 v30, 0xa

    const/16 v31, 0x0

    move-object/from16 v25, v3

    move-object/from16 v27, p0

    invoke-direct/range {v24 .. v31}, Lcom/philzhu/www/framework/impl/RButton;-><init>(Lcom/philzhu/www/framework/Graphics;[Lcom/philzhu/www/framework/Pixmap;Lcom/philzhu/www/framework/ButtonActionListener;IIIZ)V

    .line 128
    .local v24, btnMusicOff:Lcom/philzhu/www/framework/impl/RButton;
    move-object/from16 v0, p0

    iget-object v0, v0, Lcom/philzhu/www/ddz/GameScreen;->commonButtons:Ljava/util/Vector;

    move-object/from16 v16, v0

    move-object/from16 v0, v16

    move-object/from16 v1, v21

    invoke-virtual {v0, v1}, Ljava/util/Vector;->add(Ljava/lang/Object;)Z

    .line 129
    move-object/from16 v0, p0

    iget-object v0, v0, Lcom/philzhu/www/ddz/GameScreen;->commonButtons:Ljava/util/Vector;

    move-object/from16 v16, v0

    move-object/from16 v0, v16

    move-object/from16 v1, v24

    invoke-virtual {v0, v1}, Ljava/util/Vector;->add(Ljava/lang/Object;)Z

    .line 130
    move-object/from16 v0, p0

    iget-object v0, v0, Lcom/philzhu/www/ddz/GameScreen;->commonButtons:Ljava/util/Vector;

    move-object/from16 v16, v0

    move-object/from16 v0, v16

    move-object/from16 v1, v18

    invoke-virtual {v0, v1}, Ljava/util/Vector;->add(Ljava/lang/Object;)Z

    .line 132
    move-object/from16 v0, p0

    iget-object v0, v0, Lcom/philzhu/www/ddz/GameScreen;->runningButtons:Ljava/util/Vector;

    move-object/from16 v16, v0

    move-object/from16 v0, v16

    move-object v1, v2

    invoke-virtual {v0, v1}, Ljava/util/Vector;->add(Ljava/lang/Object;)Z

    .line 133
    move-object/from16 v0, p0

    iget-object v0, v0, Lcom/philzhu/www/ddz/GameScreen;->runningButtons:Ljava/util/Vector;

    move-object/from16 v16, v0

    move-object/from16 v0, v16

    move-object v1, v6

    invoke-virtual {v0, v1}, Ljava/util/Vector;->add(Ljava/lang/Object;)Z

    .line 134
    move-object/from16 v0, p0

    iget-object v0, v0, Lcom/philzhu/www/ddz/GameScreen;->runningButtons:Ljava/util/Vector;

    move-object/from16 v16, v0

    move-object/from16 v0, v16

    move-object v1, v7

    invoke-virtual {v0, v1}, Ljava/util/Vector;->add(Ljava/lang/Object;)Z

    .line 135
    move-object/from16 v0, p0

    iget-object v0, v0, Lcom/philzhu/www/ddz/GameScreen;->runningButtons:Ljava/util/Vector;

    move-object/from16 v16, v0

    move-object/from16 v0, v16

    move-object v1, v8

    invoke-virtual {v0, v1}, Ljava/util/Vector;->add(Ljava/lang/Object;)Z

    .line 136
    move-object/from16 v0, p0

    iget-object v0, v0, Lcom/philzhu/www/ddz/GameScreen;->runningButtons:Ljava/util/Vector;

    move-object/from16 v16, v0

    move-object/from16 v0, v16

    move-object v1, v9

    invoke-virtual {v0, v1}, Ljava/util/Vector;->add(Ljava/lang/Object;)Z

    .line 137
    move-object/from16 v0, p0

    iget-object v0, v0, Lcom/philzhu/www/ddz/GameScreen;->runningButtons:Ljava/util/Vector;

    move-object/from16 v16, v0

    move-object/from16 v0, v16

    move-object v1, v10

    invoke-virtual {v0, v1}, Ljava/util/Vector;->add(Ljava/lang/Object;)Z

    .line 138
    move-object/from16 v0, p0

    iget-object v0, v0, Lcom/philzhu/www/ddz/GameScreen;->runningButtons:Ljava/util/Vector;

    move-object/from16 v16, v0

    move-object/from16 v0, v16

    move-object v1, v11

    invoke-virtual {v0, v1}, Ljava/util/Vector;->add(Ljava/lang/Object;)Z

    .line 139
    move-object/from16 v0, p0

    iget-object v0, v0, Lcom/philzhu/www/ddz/GameScreen;->runningButtons:Ljava/util/Vector;

    move-object/from16 v16, v0

    move-object/from16 v0, v16

    move-object v1, v12

    invoke-virtual {v0, v1}, Ljava/util/Vector;->add(Ljava/lang/Object;)Z

    .line 140
    move-object/from16 v0, p0

    iget-object v0, v0, Lcom/philzhu/www/ddz/GameScreen;->runningButtons:Ljava/util/Vector;

    move-object/from16 v16, v0

    move-object/from16 v0, v16

    move-object v1, v15

    invoke-virtual {v0, v1}, Ljava/util/Vector;->add(Ljava/lang/Object;)Z

    .line 142
    move-object/from16 v0, p0

    iget-object v0, v0, Lcom/philzhu/www/ddz/GameScreen;->gameoverButtons:Ljava/util/Vector;

    move-object/from16 v16, v0

    move-object/from16 v0, v16

    move-object v1, v13

    invoke-virtual {v0, v1}, Ljava/util/Vector;->add(Ljava/lang/Object;)Z

    .line 143
    move-object/from16 v0, p0

    iget-object v0, v0, Lcom/philzhu/www/ddz/GameScreen;->gameoverButtons:Ljava/util/Vector;

    move-object/from16 v16, v0

    move-object/from16 v0, v16

    move-object v1, v14

    invoke-virtual {v0, v1}, Ljava/util/Vector;->add(Ljava/lang/Object;)Z

    .line 144
    return-void
.end method

.method private nextGame()V
    .locals 2

    .prologue
    const/4 v1, 0x0

    .line 62
    new-instance v0, Lcom/philzhu/www/ddz/World;

    invoke-direct {v0}, Lcom/philzhu/www/ddz/World;-><init>()V

    iput-object v0, p0, Lcom/philzhu/www/ddz/GameScreen;->world:Lcom/philzhu/www/ddz/World;

    .line 63
    sget-object v0, Lcom/philzhu/www/ddz/GameScreen$GameState;->Running:Lcom/philzhu/www/ddz/GameScreen$GameState;

    invoke-direct {p0, v0}, Lcom/philzhu/www/ddz/GameScreen;->setGameState(Lcom/philzhu/www/ddz/GameScreen$GameState;)V

    .line 64
    iput v1, p0, Lcom/philzhu/www/ddz/GameScreen;->currentPressedButton:I

    .line 65
    const/4 v0, -0x1

    iput v0, p0, Lcom/philzhu/www/ddz/GameScreen;->lastIndex:I

    .line 66
    iput v1, p0, Lcom/philzhu/www/ddz/GameScreen;->upPlayerCardsNum:I

    .line 67
    iput v1, p0, Lcom/philzhu/www/ddz/GameScreen;->downPlayerCardsNum:I

    .line 68
    iput v1, p0, Lcom/philzhu/www/ddz/GameScreen;->baseScore:I

    .line 69
    iput-boolean v1, p0, Lcom/philzhu/www/ddz/GameScreen;->playerMWin:Z

    .line 70
    return-void
.end method

.method private setCardsTouchZone(IIII)V
    .locals 1
    .parameter "left"
    .parameter "top"
    .parameter "right"
    .parameter "bottom"

    .prologue
    .line 1235
    iget-object v0, p0, Lcom/philzhu/www/ddz/GameScreen;->cardsTouchZone:Landroid/graphics/Rect;

    iput p1, v0, Landroid/graphics/Rect;->left:I

    .line 1236
    iget-object v0, p0, Lcom/philzhu/www/ddz/GameScreen;->cardsTouchZone:Landroid/graphics/Rect;

    iput p2, v0, Landroid/graphics/Rect;->top:I

    .line 1237
    iget-object v0, p0, Lcom/philzhu/www/ddz/GameScreen;->cardsTouchZone:Landroid/graphics/Rect;

    iput p3, v0, Landroid/graphics/Rect;->right:I

    .line 1238
    iget-object v0, p0, Lcom/philzhu/www/ddz/GameScreen;->cardsTouchZone:Landroid/graphics/Rect;

    iput p4, v0, Landroid/graphics/Rect;->bottom:I

    .line 1239
    return-void
.end method

.method private setGameState(Lcom/philzhu/www/ddz/GameScreen$GameState;)V
    .locals 1
    .parameter "state"

    .prologue
    .line 1343
    iput-object p1, p0, Lcom/philzhu/www/ddz/GameScreen;->state:Lcom/philzhu/www/ddz/GameScreen$GameState;

    .line 1344
    sget-object v0, Lcom/philzhu/www/ddz/GameScreen$GameState;->GameOver:Lcom/philzhu/www/ddz/GameScreen$GameState;

    if-eq p1, v0, :cond_0

    sget-object v0, Lcom/philzhu/www/ddz/GameScreen$GameState;->Running:Lcom/philzhu/www/ddz/GameScreen$GameState;

    if-ne p1, v0, :cond_1

    .line 1346
    :cond_0
    iget-object p0, p0, Lcom/philzhu/www/ddz/GameScreen;->game:Lcom/philzhu/www/framework/Game;

    .end local p0
    check-cast p0, Lcom/philzhu/www/framework/impl/AndroidGame;

    invoke-virtual {p0}, Lcom/philzhu/www/framework/impl/AndroidGame;->showAd()V

    .line 1348
    :cond_1
    return-void
.end method

.method private toggleKeeper()V
    .locals 3

    .prologue
    const/4 v2, 0x0

    const/4 v1, 0x1

    .line 1325
    iget-object v0, p0, Lcom/philzhu/www/ddz/GameScreen;->world:Lcom/philzhu/www/ddz/World;

    iget-boolean v0, v0, Lcom/philzhu/www/ddz/World;->isKeeperDown:Z

    if-eqz v0, :cond_0

    .line 1327
    iget-object v0, p0, Lcom/philzhu/www/ddz/GameScreen;->world:Lcom/philzhu/www/ddz/World;

    iput-boolean v2, v0, Lcom/philzhu/www/ddz/World;->isKeeperDown:Z

    .line 1328
    iget-object v0, p0, Lcom/philzhu/www/ddz/GameScreen;->world:Lcom/philzhu/www/ddz/World;

    iput-boolean v1, v0, Lcom/philzhu/www/ddz/World;->isKeeperUp:Z

    .line 1339
    :goto_0
    return-void

    .line 1330
    :cond_0
    iget-object v0, p0, Lcom/philzhu/www/ddz/GameScreen;->world:Lcom/philzhu/www/ddz/World;

    iget-boolean v0, v0, Lcom/philzhu/www/ddz/World;->isKeeperUp:Z

    if-eqz v0, :cond_1

    .line 1332
    iget-object v0, p0, Lcom/philzhu/www/ddz/GameScreen;->world:Lcom/philzhu/www/ddz/World;

    iput-boolean v2, v0, Lcom/philzhu/www/ddz/World;->isKeeperUp:Z

    .line 1333
    iget-object v0, p0, Lcom/philzhu/www/ddz/GameScreen;->world:Lcom/philzhu/www/ddz/World;

    iput-boolean v1, v0, Lcom/philzhu/www/ddz/World;->isKeeperDown:Z

    goto :goto_0

    .line 1337
    :cond_1
    iget-object v0, p0, Lcom/philzhu/www/ddz/GameScreen;->world:Lcom/philzhu/www/ddz/World;

    iput-boolean v1, v0, Lcom/philzhu/www/ddz/World;->isKeeperDown:Z

    goto :goto_0
.end method

.method private updateCommonButtons(Ljava/util/List;)V
    .locals 9
    .parameter
    .annotation system Ldalvik/annotation/Signature;
        value = {
            "(",
            "Ljava/util/List",
            "<",
            "Lcom/philzhu/www/framework/Input$TouchEvent;",
            ">;)V"
        }
    .end annotation

    .prologue
    .local p1, touchEvents:Ljava/util/List;,"Ljava/util/List<Lcom/philzhu/www/framework/Input$TouchEvent;>;"
    const/4 v8, 0x1

    const/4 v7, 0x0

    .line 148
    invoke-static {}, Lcom/philzhu/www/ddz/Settings;->getSoundEnabled()Z

    move-result v6

    if-eqz v6, :cond_0

    .line 150
    iget-object v6, p0, Lcom/philzhu/www/ddz/GameScreen;->commonButtons:Ljava/util/Vector;

    invoke-virtual {v6, v7}, Ljava/util/Vector;->elementAt(I)Ljava/lang/Object;

    move-result-object v6

    check-cast v6, Lcom/philzhu/www/framework/impl/RButton;

    iput-boolean v8, v6, Lcom/philzhu/www/framework/impl/RButton;->isVisible:Z

    .line 151
    iget-object v6, p0, Lcom/philzhu/www/ddz/GameScreen;->commonButtons:Ljava/util/Vector;

    invoke-virtual {v6, v8}, Ljava/util/Vector;->elementAt(I)Ljava/lang/Object;

    move-result-object v6

    check-cast v6, Lcom/philzhu/www/framework/impl/RButton;

    iput-boolean v7, v6, Lcom/philzhu/www/framework/impl/RButton;->isVisible:Z

    .line 158
    :goto_0
    invoke-interface {p1}, Ljava/util/List;->size()I

    move-result v5

    .line 159
    .local v5, len:I
    const/4 v3, 0x0

    .local v3, i:I
    :goto_1
    if-lt v3, v5, :cond_1

    .line 172
    return-void

    .line 155
    .end local v3           #i:I
    .end local v5           #len:I
    :cond_0
    iget-object v6, p0, Lcom/philzhu/www/ddz/GameScreen;->commonButtons:Ljava/util/Vector;

    invoke-virtual {v6, v8}, Ljava/util/Vector;->elementAt(I)Ljava/lang/Object;

    move-result-object v6

    check-cast v6, Lcom/philzhu/www/framework/impl/RButton;

    iput-boolean v8, v6, Lcom/philzhu/www/framework/impl/RButton;->isVisible:Z

    .line 156
    iget-object v6, p0, Lcom/philzhu/www/ddz/GameScreen;->commonButtons:Ljava/util/Vector;

    invoke-virtual {v6, v7}, Ljava/util/Vector;->elementAt(I)Ljava/lang/Object;

    move-result-object v6

    check-cast v6, Lcom/philzhu/www/framework/impl/RButton;

    iput-boolean v7, v6, Lcom/philzhu/www/framework/impl/RButton;->isVisible:Z

    goto :goto_0

    .line 161
    .restart local v3       #i:I
    .restart local v5       #len:I
    :cond_1
    invoke-interface {p1, v3}, Ljava/util/List;->get(I)Ljava/lang/Object;

    move-result-object v2

    check-cast v2, Lcom/philzhu/www/framework/Input$TouchEvent;

    .line 162
    .local v2, event:Lcom/philzhu/www/framework/Input$TouchEvent;
    iget-object v6, p0, Lcom/philzhu/www/ddz/GameScreen;->commonButtons:Ljava/util/Vector;

    invoke-virtual {v6}, Ljava/util/Vector;->size()I

    move-result v1

    .line 163
    .local v1, commonButtonsSize:I
    const/4 v4, 0x0

    .local v4, j:I
    :goto_2
    if-lt v4, v1, :cond_2

    .line 159
    add-int/lit8 v3, v3, 0x1

    goto :goto_1

    .line 165
    :cond_2
    iget-object v6, p0, Lcom/philzhu/www/ddz/GameScreen;->commonButtons:Ljava/util/Vector;

    invoke-virtual {v6, v4}, Ljava/util/Vector;->elementAt(I)Ljava/lang/Object;

    move-result-object v0

    check-cast v0, Lcom/philzhu/www/framework/impl/RButton;

    .line 166
    .local v0, btn:Lcom/philzhu/www/framework/impl/RButton;
    iget-boolean v6, v0, Lcom/philzhu/www/framework/impl/RButton;->isVisible:Z

    if-eqz v6, :cond_3

    .line 168
    invoke-virtual {v0, v2}, Lcom/philzhu/www/framework/impl/RButton;->onTouch(Lcom/philzhu/www/framework/Input$TouchEvent;)Z

    .line 163
    :cond_3
    add-int/lit8 v4, v4, 0x1

    goto :goto_2
.end method

.method private updateGameOver(Ljava/util/List;)V
    .locals 6
    .parameter
    .annotation system Ldalvik/annotation/Signature;
        value = {
            "(",
            "Ljava/util/List",
            "<",
            "Lcom/philzhu/www/framework/Input$TouchEvent;",
            ">;)V"
        }
    .end annotation

    .prologue
    .line 351
    .local p1, touchEvents:Ljava/util/List;,"Ljava/util/List<Lcom/philzhu/www/framework/Input$TouchEvent;>;"
    invoke-interface {p1}, Ljava/util/List;->size()I

    move-result v4

    .line 352
    .local v4, len:I
    const/4 v2, 0x0

    .local v2, i:I
    :goto_0
    if-lt v2, v4, :cond_0

    .line 360
    return-void

    .line 353
    :cond_0
    invoke-interface {p1, v2}, Ljava/util/List;->get(I)Ljava/lang/Object;

    move-result-object v1

    check-cast v1, Lcom/philzhu/www/framework/Input$TouchEvent;

    .line 354
    .local v1, event:Lcom/philzhu/www/framework/Input$TouchEvent;
    iget-object v5, p0, Lcom/philzhu/www/ddz/GameScreen;->gameoverButtons:Ljava/util/Vector;

    invoke-virtual {v5}, Ljava/util/Vector;->size()I

    move-result v0

    .line 355
    .local v0, buttonsSize:I
    const/4 v3, 0x0

    .local v3, j:I
    :goto_1
    if-lt v3, v0, :cond_1

    .line 352
    add-int/lit8 v2, v2, 0x1

    goto :goto_0

    .line 357
    :cond_1
    iget-object v5, p0, Lcom/philzhu/www/ddz/GameScreen;->gameoverButtons:Ljava/util/Vector;

    invoke-virtual {v5, v3}, Ljava/util/Vector;->elementAt(I)Ljava/lang/Object;

    move-result-object v5

    check-cast v5, Lcom/philzhu/www/framework/impl/RButton;

    invoke-virtual {v5, v1}, Lcom/philzhu/www/framework/impl/RButton;->onTouch(Lcom/philzhu/www/framework/Input$TouchEvent;)Z

    .line 355
    add-int/lit8 v3, v3, 0x1

    goto :goto_1
.end method

.method private updateRunning(Ljava/util/List;F)V
    .locals 13
    .parameter
    .parameter "deltaTime"
    .annotation system Ldalvik/annotation/Signature;
        value = {
            "(",
            "Ljava/util/List",
            "<",
            "Lcom/philzhu/www/framework/Input$TouchEvent;",
            ">;F)V"
        }
    .end annotation

    .prologue
    .local p1, touchEvents:Ljava/util/List;,"Ljava/util/List<Lcom/philzhu/www/framework/Input$TouchEvent;>;"
    const/4 v12, 0x1

    const/4 v11, 0x0

    const/4 v9, -0x1

    const/4 v10, 0x0

    .line 245
    invoke-interface {p1}, Ljava/util/List;->size()I

    move-result v6

    .line 246
    .local v6, len:I
    invoke-direct {p0}, Lcom/philzhu/www/ddz/GameScreen;->updateRunningButtons()V

    .line 247
    const/4 v3, 0x0

    .local v3, i:I
    :goto_0
    if-lt v3, v6, :cond_2

    .line 285
    iget-object v7, p0, Lcom/philzhu/www/ddz/GameScreen;->world:Lcom/philzhu/www/ddz/World;

    invoke-virtual {v7, p2}, Lcom/philzhu/www/ddz/World;->update(F)V

    .line 286
    iget-object v7, p0, Lcom/philzhu/www/ddz/GameScreen;->world:Lcom/philzhu/www/ddz/World;

    iget-boolean v7, v7, Lcom/philzhu/www/ddz/World;->noOneCalls:Z

    if-eqz v7, :cond_0

    .line 288
    iget v7, p0, Lcom/philzhu/www/ddz/GameScreen;->delay:F

    cmpl-float v7, v7, v10

    if-nez v7, :cond_a

    .line 290
    const/high16 v7, 0x4000

    iput v7, p0, Lcom/philzhu/www/ddz/GameScreen;->delay:F

    .line 291
    iget-object v7, p0, Lcom/philzhu/www/ddz/GameScreen;->game:Lcom/philzhu/www/framework/Game;

    check-cast v7, Lcom/philzhu/www/framework/impl/AndroidGame;

    iget-object v8, p0, Lcom/philzhu/www/ddz/GameScreen;->game:Lcom/philzhu/www/framework/Game;

    check-cast v8, Lcom/philzhu/www/framework/impl/AndroidGame;

    const v9, 0x7f04004e

    invoke-virtual {v8, v9}, Lcom/philzhu/www/framework/impl/AndroidGame;->getString(I)Ljava/lang/String;

    move-result-object v8

    invoke-virtual {v7, v8}, Lcom/philzhu/www/framework/impl/AndroidGame;->shwoToast(Ljava/lang/String;)V

    .line 304
    :cond_0
    :goto_1
    iget-object v7, p0, Lcom/philzhu/www/ddz/GameScreen;->world:Lcom/philzhu/www/ddz/World;

    iget-object v7, v7, Lcom/philzhu/www/ddz/World;->status:Lcom/philzhu/www/ddz/World$Status;

    sget-object v8, Lcom/philzhu/www/ddz/World$Status;->GameOver:Lcom/philzhu/www/ddz/World$Status;

    if-ne v7, v8, :cond_1

    .line 306
    iget v7, p0, Lcom/philzhu/www/ddz/GameScreen;->delay:F

    cmpl-float v7, v7, v10

    if-nez v7, :cond_c

    .line 308
    const/high16 v7, 0x3f80

    iput v7, p0, Lcom/philzhu/www/ddz/GameScreen;->delay:F

    .line 309
    invoke-virtual {p0}, Lcom/philzhu/www/ddz/GameScreen;->upgrade()V

    .line 310
    iget-boolean v7, p0, Lcom/philzhu/www/ddz/GameScreen;->playerMWin:Z

    if-eqz v7, :cond_b

    .line 312
    sget-object v7, Lcom/philzhu/www/ddz/Assets;->sWin:Lcom/philzhu/www/framework/Sound;

    invoke-static {v7}, Lcom/philzhu/www/ddz/Assets;->playSound(Lcom/philzhu/www/framework/Sound;)V

    .line 330
    :cond_1
    :goto_2
    iget-object v7, p0, Lcom/philzhu/www/ddz/GameScreen;->world:Lcom/philzhu/www/ddz/World;

    iget-object v7, v7, Lcom/philzhu/www/ddz/World;->playerU:Lcom/philzhu/www/ddz/Player;

    iget-object v7, v7, Lcom/philzhu/www/ddz/Player;->cards:Ljava/util/Vector;

    invoke-virtual {v7}, Ljava/util/Vector;->size()I

    move-result v7

    iput v7, p0, Lcom/philzhu/www/ddz/GameScreen;->upPlayerCardsNum:I

    .line 331
    iget-object v7, p0, Lcom/philzhu/www/ddz/GameScreen;->world:Lcom/philzhu/www/ddz/World;

    iget-object v7, v7, Lcom/philzhu/www/ddz/World;->playerD:Lcom/philzhu/www/ddz/Player;

    iget-object v7, v7, Lcom/philzhu/www/ddz/Player;->cards:Ljava/util/Vector;

    invoke-virtual {v7}, Ljava/util/Vector;->size()I

    move-result v7

    iput v7, p0, Lcom/philzhu/www/ddz/GameScreen;->downPlayerCardsNum:I

    .line 332
    return-void

    .line 248
    :cond_2
    invoke-interface {p1, v3}, Ljava/util/List;->get(I)Ljava/lang/Object;

    move-result-object v2

    check-cast v2, Lcom/philzhu/www/framework/Input$TouchEvent;

    .line 250
    .local v2, event:Lcom/philzhu/www/framework/Input$TouchEvent;
    iget-object v7, p0, Lcom/philzhu/www/ddz/GameScreen;->runningButtons:Ljava/util/Vector;

    invoke-virtual {v7}, Ljava/util/Vector;->size()I

    move-result v0

    .line 251
    .local v0, buttonsSize:I
    const/4 v5, 0x0

    .local v5, j:I
    :goto_3
    if-lt v5, v0, :cond_5

    .line 258
    iget v7, v2, Lcom/philzhu/www/framework/Input$TouchEvent;->x:I

    iget v8, v2, Lcom/philzhu/www/framework/Input$TouchEvent;->y:I

    invoke-direct {p0, v7, v8}, Lcom/philzhu/www/ddz/GameScreen;->inCardsTouchZone(II)Z

    move-result v7

    if-eqz v7, :cond_4

    .line 260
    iget v7, v2, Lcom/philzhu/www/framework/Input$TouchEvent;->type:I

    if-eqz v7, :cond_3

    iget v7, v2, Lcom/philzhu/www/framework/Input$TouchEvent;->type:I

    const/4 v8, 0x2

    if-ne v7, v8, :cond_9

    .line 262
    :cond_3
    iget v7, v2, Lcom/philzhu/www/framework/Input$TouchEvent;->x:I

    invoke-direct {p0, v7}, Lcom/philzhu/www/ddz/GameScreen;->getCardsIndex(I)I

    move-result v4

    .line 263
    .local v4, index:I
    iget v7, p0, Lcom/philzhu/www/ddz/GameScreen;->lastIndex:I

    if-eq v4, v7, :cond_4

    if-ne v4, v9, :cond_7

    .line 247
    .end local v4           #index:I
    :cond_4
    :goto_4
    add-int/lit8 v3, v3, 0x1

    goto/16 :goto_0

    .line 253
    :cond_5
    iget-object v7, p0, Lcom/philzhu/www/ddz/GameScreen;->runningButtons:Ljava/util/Vector;

    invoke-virtual {v7, v5}, Ljava/util/Vector;->elementAt(I)Ljava/lang/Object;

    move-result-object v7

    check-cast v7, Lcom/philzhu/www/framework/impl/RButton;

    iget-boolean v7, v7, Lcom/philzhu/www/framework/impl/RButton;->isVisible:Z

    if-eqz v7, :cond_6

    .line 255
    iget-object v7, p0, Lcom/philzhu/www/ddz/GameScreen;->runningButtons:Ljava/util/Vector;

    invoke-virtual {v7, v5}, Ljava/util/Vector;->elementAt(I)Ljava/lang/Object;

    move-result-object v7

    check-cast v7, Lcom/philzhu/www/framework/impl/RButton;

    invoke-virtual {v7, v2}, Lcom/philzhu/www/framework/impl/RButton;->onTouch(Lcom/philzhu/www/framework/Input$TouchEvent;)Z

    .line 251
    :cond_6
    add-int/lit8 v5, v5, 0x1

    goto :goto_3

    .line 267
    .restart local v4       #index:I
    :cond_7
    iput v4, p0, Lcom/philzhu/www/ddz/GameScreen;->lastIndex:I

    .line 268
    iget-object v7, p0, Lcom/philzhu/www/ddz/GameScreen;->world:Lcom/philzhu/www/ddz/World;

    iget-object v7, v7, Lcom/philzhu/www/ddz/World;->playerM:Lcom/philzhu/www/ddz/Player;

    iget-object v7, v7, Lcom/philzhu/www/ddz/Player;->cards:Ljava/util/Vector;

    invoke-virtual {v7, v4}, Ljava/util/Vector;->elementAt(I)Ljava/lang/Object;

    move-result-object v1

    check-cast v1, Lcom/philzhu/www/ddz/Card;

    .line 269
    .local v1, card:Lcom/philzhu/www/ddz/Card;
    iget-boolean v7, v1, Lcom/philzhu/www/ddz/Card;->isPicked:Z

    if-eqz v7, :cond_8

    .line 271
    iput-boolean v11, v1, Lcom/philzhu/www/ddz/Card;->isPicked:Z

    goto :goto_4

    .line 275
    :cond_8
    iput-boolean v12, v1, Lcom/philzhu/www/ddz/Card;->isPicked:Z

    goto :goto_4

    .line 278
    .end local v1           #card:Lcom/philzhu/www/ddz/Card;
    .end local v4           #index:I
    :cond_9
    iget v7, v2, Lcom/philzhu/www/framework/Input$TouchEvent;->type:I

    if-ne v7, v12, :cond_4

    .line 280
    iput v9, p0, Lcom/philzhu/www/ddz/GameScreen;->lastIndex:I

    goto :goto_4

    .line 295
    .end local v0           #buttonsSize:I
    .end local v2           #event:Lcom/philzhu/www/framework/Input$TouchEvent;
    .end local v5           #j:I
    :cond_a
    iget v7, p0, Lcom/philzhu/www/ddz/GameScreen;->delay:F

    sub-float/2addr v7, p2

    iput v7, p0, Lcom/philzhu/www/ddz/GameScreen;->delay:F

    .line 296
    iget v7, p0, Lcom/philzhu/www/ddz/GameScreen;->delay:F

    cmpg-float v7, v7, v10

    if-gtz v7, :cond_0

    .line 298
    iput v10, p0, Lcom/philzhu/www/ddz/GameScreen;->delay:F

    .line 299
    invoke-direct {p0}, Lcom/philzhu/www/ddz/GameScreen;->nextGame()V

    .line 300
    iget-object v7, p0, Lcom/philzhu/www/ddz/GameScreen;->world:Lcom/philzhu/www/ddz/World;

    iput-boolean v11, v7, Lcom/philzhu/www/ddz/World;->noOneCalls:Z

    goto/16 :goto_1

    .line 316
    :cond_b
    sget-object v7, Lcom/philzhu/www/ddz/Assets;->sLose:Lcom/philzhu/www/framework/Sound;

    invoke-static {v7}, Lcom/philzhu/www/ddz/Assets;->playSound(Lcom/philzhu/www/framework/Sound;)V

    goto/16 :goto_2

    .line 321
    :cond_c
    iget v7, p0, Lcom/philzhu/www/ddz/GameScreen;->delay:F

    sub-float/2addr v7, p2

    iput v7, p0, Lcom/philzhu/www/ddz/GameScreen;->delay:F

    .line 322
    iget v7, p0, Lcom/philzhu/www/ddz/GameScreen;->delay:F

    cmpg-float v7, v7, v10

    if-gtz v7, :cond_1

    .line 324
    iput v10, p0, Lcom/philzhu/www/ddz/GameScreen;->delay:F

    .line 325
    sget-object v7, Lcom/philzhu/www/ddz/GameScreen$GameState;->ShowAICards:Lcom/philzhu/www/ddz/GameScreen$GameState;

    invoke-direct {p0, v7}, Lcom/philzhu/www/ddz/GameScreen;->setGameState(Lcom/philzhu/www/ddz/GameScreen$GameState;)V

    goto/16 :goto_2
.end method

.method private updateRunningButtons()V
    .locals 8

    .prologue
    const/4 v7, 0x3

    const/4 v6, 0x2

    const/4 v5, 0x0

    const/4 v4, 0x1

    .line 176
    iget-object v2, p0, Lcom/philzhu/www/ddz/GameScreen;->runningButtons:Ljava/util/Vector;

    invoke-virtual {v2}, Ljava/util/Vector;->size()I

    move-result v0

    .line 177
    .local v0, buttonsSize:I
    if-nez v0, :cond_1

    .line 227
    .end local p0
    :cond_0
    :goto_0
    return-void

    .line 181
    .restart local p0
    :cond_1
    const/4 v1, 0x0

    .local v1, i:I
    :goto_1
    if-lt v1, v0, :cond_7

    .line 185
    iget-object v2, p0, Lcom/philzhu/www/ddz/GameScreen;->world:Lcom/philzhu/www/ddz/World;

    iget-object v2, v2, Lcom/philzhu/www/ddz/World;->status:Lcom/philzhu/www/ddz/World$Status;

    sget-object v3, Lcom/philzhu/www/ddz/World$Status;->Playing:Lcom/philzhu/www/ddz/World$Status;

    if-ne v2, v3, :cond_2

    .line 187
    iget-object v2, p0, Lcom/philzhu/www/ddz/GameScreen;->runningButtons:Ljava/util/Vector;

    const/16 v3, 0x8

    invoke-virtual {v2, v3}, Ljava/util/Vector;->elementAt(I)Ljava/lang/Object;

    move-result-object v2

    check-cast v2, Lcom/philzhu/www/framework/impl/RButton;

    iput-boolean v4, v2, Lcom/philzhu/www/framework/impl/RButton;->isVisible:Z

    .line 189
    :cond_2
    iget-object v2, p0, Lcom/philzhu/www/ddz/GameScreen;->world:Lcom/philzhu/www/ddz/World;

    invoke-virtual {v2}, Lcom/philzhu/www/ddz/World;->currentPlayerNotAI()Z

    move-result v2

    if-eqz v2, :cond_0

    iget-object v2, p0, Lcom/philzhu/www/ddz/GameScreen;->world:Lcom/philzhu/www/ddz/World;

    iget-boolean v2, v2, Lcom/philzhu/www/ddz/World;->isKeeperDown:Z

    if-nez v2, :cond_0

    iget-object v2, p0, Lcom/philzhu/www/ddz/GameScreen;->world:Lcom/philzhu/www/ddz/World;

    iget-boolean v2, v2, Lcom/philzhu/www/ddz/World;->isKeeperUp:Z

    if-nez v2, :cond_0

    .line 194
    iget-object v2, p0, Lcom/philzhu/www/ddz/GameScreen;->world:Lcom/philzhu/www/ddz/World;

    invoke-virtual {v2}, Lcom/philzhu/www/ddz/World;->currentPlayerNotAI()Z

    move-result v2

    if-eqz v2, :cond_0

    .line 198
    iget-object v2, p0, Lcom/philzhu/www/ddz/GameScreen;->world:Lcom/philzhu/www/ddz/World;

    iget-object v2, v2, Lcom/philzhu/www/ddz/World;->status:Lcom/philzhu/www/ddz/World$Status;

    sget-object v3, Lcom/philzhu/www/ddz/World$Status;->Call:Lcom/philzhu/www/ddz/World$Status;

    if-ne v2, v3, :cond_8

    iget-object v2, p0, Lcom/philzhu/www/ddz/GameScreen;->world:Lcom/philzhu/www/ddz/World;

    iget-object v2, v2, Lcom/philzhu/www/ddz/World;->playerM:Lcom/philzhu/www/ddz/Player;

    iget-boolean v2, v2, Lcom/philzhu/www/ddz/Player;->isCalling:Z

    if-eqz v2, :cond_3

    iget-object v2, p0, Lcom/philzhu/www/ddz/GameScreen;->world:Lcom/philzhu/www/ddz/World;

    iget-object v2, v2, Lcom/philzhu/www/ddz/World;->playerU:Lcom/philzhu/www/ddz/Player;

    iget-boolean v2, v2, Lcom/philzhu/www/ddz/Player;->isCalling:Z

    if-eqz v2, :cond_3

    iget-object v2, p0, Lcom/philzhu/www/ddz/GameScreen;->world:Lcom/philzhu/www/ddz/World;

    iget-object v2, v2, Lcom/philzhu/www/ddz/World;->playerD:Lcom/philzhu/www/ddz/Player;

    iget-boolean v2, v2, Lcom/philzhu/www/ddz/Player;->isCalling:Z

    if-nez v2, :cond_8

    :cond_3
    iget-object v2, p0, Lcom/philzhu/www/ddz/GameScreen;->world:Lcom/philzhu/www/ddz/World;

    iget-boolean v2, v2, Lcom/philzhu/www/ddz/World;->isSettingDizhu:Z

    if-nez v2, :cond_8

    .line 200
    iget-object v2, p0, Lcom/philzhu/www/ddz/GameScreen;->world:Lcom/philzhu/www/ddz/World;

    iget v2, v2, Lcom/philzhu/www/ddz/World;->grade:I

    if-ge v2, v7, :cond_4

    .line 202
    iget-object v2, p0, Lcom/philzhu/www/ddz/GameScreen;->runningButtons:Ljava/util/Vector;

    invoke-virtual {v2, v5}, Ljava/util/Vector;->elementAt(I)Ljava/lang/Object;

    move-result-object v2

    check-cast v2, Lcom/philzhu/www/framework/impl/RButton;

    iput-boolean v4, v2, Lcom/philzhu/www/framework/impl/RButton;->isVisible:Z

    .line 204
    :cond_4
    iget-object v2, p0, Lcom/philzhu/www/ddz/GameScreen;->world:Lcom/philzhu/www/ddz/World;

    iget v2, v2, Lcom/philzhu/www/ddz/World;->grade:I

    if-ge v2, v6, :cond_5

    .line 206
    iget-object v2, p0, Lcom/philzhu/www/ddz/GameScreen;->runningButtons:Ljava/util/Vector;

    invoke-virtual {v2, v4}, Ljava/util/Vector;->elementAt(I)Ljava/lang/Object;

    move-result-object v2

    check-cast v2, Lcom/philzhu/www/framework/impl/RButton;

    iput-boolean v4, v2, Lcom/philzhu/www/framework/impl/RButton;->isVisible:Z

    .line 208
    :cond_5
    iget-object v2, p0, Lcom/philzhu/www/ddz/GameScreen;->world:Lcom/philzhu/www/ddz/World;

    iget v2, v2, Lcom/philzhu/www/ddz/World;->grade:I

    if-ge v2, v4, :cond_6

    .line 210
    iget-object v2, p0, Lcom/philzhu/www/ddz/GameScreen;->runningButtons:Ljava/util/Vector;

    invoke-virtual {v2, v6}, Ljava/util/Vector;->elementAt(I)Ljava/lang/Object;

    move-result-object v2

    check-cast v2, Lcom/philzhu/www/framework/impl/RButton;

    iput-boolean v4, v2, Lcom/philzhu/www/framework/impl/RButton;->isVisible:Z

    .line 212
    :cond_6
    iget-object v2, p0, Lcom/philzhu/www/ddz/GameScreen;->runningButtons:Ljava/util/Vector;

    invoke-virtual {v2, v7}, Ljava/util/Vector;->elementAt(I)Ljava/lang/Object;

    move-result-object p0

    .end local p0
    check-cast p0, Lcom/philzhu/www/framework/impl/RButton;

    iput-boolean v4, p0, Lcom/philzhu/www/framework/impl/RButton;->isVisible:Z

    goto/16 :goto_0

    .line 183
    .restart local p0
    :cond_7
    iget-object v2, p0, Lcom/philzhu/www/ddz/GameScreen;->runningButtons:Ljava/util/Vector;

    invoke-virtual {v2, v1}, Ljava/util/Vector;->elementAt(I)Ljava/lang/Object;

    move-result-object v2

    check-cast v2, Lcom/philzhu/www/framework/impl/RButton;

    iput-boolean v5, v2, Lcom/philzhu/www/framework/impl/RButton;->isVisible:Z

    .line 181
    add-int/lit8 v1, v1, 0x1

    goto/16 :goto_1

    .line 214
    :cond_8
    iget-object v2, p0, Lcom/philzhu/www/ddz/GameScreen;->world:Lcom/philzhu/www/ddz/World;

    iget-object v2, v2, Lcom/philzhu/www/ddz/World;->status:Lcom/philzhu/www/ddz/World$Status;

    sget-object v3, Lcom/philzhu/www/ddz/World$Status;->Playing:Lcom/philzhu/www/ddz/World$Status;

    if-ne v2, v3, :cond_0

    .line 216
    iget-object v2, p0, Lcom/philzhu/www/ddz/GameScreen;->world:Lcom/philzhu/www/ddz/World;

    iget-boolean v2, v2, Lcom/philzhu/www/ddz/World;->firstOne:Z

    if-nez v2, :cond_9

    .line 218
    iget-object v2, p0, Lcom/philzhu/www/ddz/GameScreen;->runningButtons:Ljava/util/Vector;

    const/4 v3, 0x4

    invoke-virtual {v2, v3}, Ljava/util/Vector;->elementAt(I)Ljava/lang/Object;

    move-result-object v2

    check-cast v2, Lcom/philzhu/www/framework/impl/RButton;

    iput-boolean v4, v2, Lcom/philzhu/www/framework/impl/RButton;->isVisible:Z

    .line 220
    :cond_9
    iget-object v2, p0, Lcom/philzhu/www/ddz/GameScreen;->runningButtons:Ljava/util/Vector;

    const/4 v3, 0x7

    invoke-virtual {v2, v3}, Ljava/util/Vector;->elementAt(I)Ljava/lang/Object;

    move-result-object v2

    check-cast v2, Lcom/philzhu/www/framework/impl/RButton;

    iput-boolean v4, v2, Lcom/philzhu/www/framework/impl/RButton;->isVisible:Z

    .line 221
    invoke-direct {p0}, Lcom/philzhu/www/ddz/GameScreen;->havePickedCards()Z

    move-result v2

    if-eqz v2, :cond_0

    .line 223
    iget-object v2, p0, Lcom/philzhu/www/ddz/GameScreen;->runningButtons:Ljava/util/Vector;

    const/4 v3, 0x5

    invoke-virtual {v2, v3}, Ljava/util/Vector;->elementAt(I)Ljava/lang/Object;

    move-result-object v2

    check-cast v2, Lcom/philzhu/www/framework/impl/RButton;

    iput-boolean v4, v2, Lcom/philzhu/www/framework/impl/RButton;->isVisible:Z

    .line 224
    iget-object v2, p0, Lcom/philzhu/www/ddz/GameScreen;->runningButtons:Ljava/util/Vector;

    const/4 v3, 0x6

    invoke-virtual {v2, v3}, Ljava/util/Vector;->elementAt(I)Ljava/lang/Object;

    move-result-object p0

    .end local p0
    check-cast p0, Lcom/philzhu/www/framework/impl/RButton;

    iput-boolean v4, p0, Lcom/philzhu/www/framework/impl/RButton;->isVisible:Z

    goto/16 :goto_0
.end method

.method private updateShowAICards(Ljava/util/List;F)V
    .locals 2
    .parameter
    .parameter "deltaTime"
    .annotation system Ldalvik/annotation/Signature;
        value = {
            "(",
            "Ljava/util/List",
            "<",
            "Lcom/philzhu/www/framework/Input$TouchEvent;",
            ">;F)V"
        }
    .end annotation

    .prologue
    .local p1, touchEvents:Ljava/util/List;,"Ljava/util/List<Lcom/philzhu/www/framework/Input$TouchEvent;>;"
    const/4 v1, 0x0

    .line 335
    iget v0, p0, Lcom/philzhu/www/ddz/GameScreen;->delay:F

    cmpl-float v0, v0, v1

    if-nez v0, :cond_1

    .line 337
    const/high16 v0, 0x4040

    iput v0, p0, Lcom/philzhu/www/ddz/GameScreen;->delay:F

    .line 348
    :cond_0
    :goto_0
    return-void

    .line 341
    :cond_1
    iget v0, p0, Lcom/philzhu/www/ddz/GameScreen;->delay:F

    sub-float/2addr v0, p2

    iput v0, p0, Lcom/philzhu/www/ddz/GameScreen;->delay:F

    .line 342
    iget v0, p0, Lcom/philzhu/www/ddz/GameScreen;->delay:F

    cmpg-float v0, v0, v1

    if-gtz v0, :cond_0

    .line 344
    iput v1, p0, Lcom/philzhu/www/ddz/GameScreen;->delay:F

    .line 345
    sget-object v0, Lcom/philzhu/www/ddz/GameScreen$GameState;->GameOver:Lcom/philzhu/www/ddz/GameScreen$GameState;

    invoke-direct {p0, v0}, Lcom/philzhu/www/ddz/GameScreen;->setGameState(Lcom/philzhu/www/ddz/GameScreen$GameState;)V

    goto :goto_0
.end method


# virtual methods
.method public dispose()V
    .locals 0

    .prologue
    .line 1421
    return-void
.end method

.method public drawScore(Lcom/philzhu/www/framework/Graphics;Ljava/lang/String;II)V
    .locals 11
    .parameter "g"
    .parameter "line"
    .parameter "x"
    .parameter "y"

    .prologue
    .line 820
    invoke-virtual {p2}, Ljava/lang/String;->length()I

    move-result v10

    .line 821
    .local v10, len:I
    const/4 v9, 0x0

    .local v9, i:I
    :goto_0
    if-lt v9, v10, :cond_0

    .line 831
    return-void

    .line 823
    :cond_0
    invoke-virtual {p2, v9}, Ljava/lang/String;->charAt(I)C

    move-result v8

    .line 825
    .local v8, character:C
    const/16 v0, 0x30

    sub-int v0, v8, v0

    mul-int/lit8 v4, v0, 0x11

    .line 826
    .local v4, srcX:I
    const/16 v6, 0x11

    .line 828
    .local v6, srcWidth:I
    sget-object v1, Lcom/philzhu/www/ddz/Assets;->numbers:Lcom/philzhu/www/framework/Pixmap;

    const/4 v5, 0x0

    const/16 v7, 0x15

    move-object v0, p1

    move v2, p3

    move v3, p4

    invoke-interface/range {v0 .. v7}, Lcom/philzhu/www/framework/Graphics;->drawPixmap(Lcom/philzhu/www/framework/Pixmap;IIIIII)V

    .line 829
    add-int/2addr p3, v6

    .line 821
    add-int/lit8 v9, v9, 0x1

    goto :goto_0
.end method

.method public drawText(Lcom/philzhu/www/framework/Graphics;Ljava/lang/String;II)V
    .locals 11
    .parameter "g"
    .parameter "line"
    .parameter "x"
    .parameter "y"

    .prologue
    .line 672
    invoke-virtual {p2}, Ljava/lang/String;->length()I

    move-result v10

    .line 673
    .local v10, len:I
    const/4 v9, 0x0

    .local v9, i:I
    :goto_0
    if-lt v9, v10, :cond_0

    .line 687
    return-void

    .line 674
    :cond_0
    invoke-virtual {p2, v9}, Ljava/lang/String;->charAt(I)C

    move-result v8

    .line 676
    .local v8, character:C
    const/16 v0, 0x20

    if-ne v8, v0, :cond_1

    .line 677
    add-int/lit8 p3, p3, 0x14

    .line 673
    :goto_1
    add-int/lit8 v9, v9, 0x1

    goto :goto_0

    .line 681
    :cond_1
    const/16 v0, 0x30

    sub-int v0, v8, v0

    mul-int/lit8 v4, v0, 0x11

    .line 682
    .local v4, srcX:I
    const/16 v6, 0x11

    .line 684
    .local v6, srcWidth:I
    sget-object v1, Lcom/philzhu/www/ddz/Assets;->numbers:Lcom/philzhu/www/framework/Pixmap;

    const/4 v5, 0x0

    const/16 v7, 0x15

    move-object v0, p1

    move v2, p3

    move v3, p4

    invoke-interface/range {v0 .. v7}, Lcom/philzhu/www/framework/Graphics;->drawPixmap(Lcom/philzhu/www/framework/Pixmap;IIIIII)V

    .line 685
    add-int/2addr p3, v6

    goto :goto_1
.end method

.method public pause()V
    .locals 2

    .prologue
    .line 1406
    iget-object v0, p0, Lcom/philzhu/www/ddz/GameScreen;->world:Lcom/philzhu/www/ddz/World;

    iget-object v0, v0, Lcom/philzhu/www/ddz/World;->status:Lcom/philzhu/www/ddz/World$Status;

    sget-object v1, Lcom/philzhu/www/ddz/World$Status;->GameOver:Lcom/philzhu/www/ddz/World$Status;

    if-ne v0, v1, :cond_0

    .line 1408
    iget-object v0, p0, Lcom/philzhu/www/ddz/GameScreen;->game:Lcom/philzhu/www/framework/Game;

    invoke-interface {v0}, Lcom/philzhu/www/framework/Game;->getFileIO()Lcom/philzhu/www/framework/FileIO;

    move-result-object v0

    invoke-static {v0}, Lcom/philzhu/www/ddz/Settings;->save(Lcom/philzhu/www/framework/FileIO;)V

    .line 1410
    :cond_0
    return-void
.end method

.method public performAction(Lcom/philzhu/www/framework/impl/RButton;)V
    .locals 3
    .parameter "rbutton"

    .prologue
    .line 1352
    iget v0, p1, Lcom/philzhu/www/framework/impl/RButton;->btnKind:I

    packed-switch v0, :pswitch_data_0

    .line 1401
    .end local p0
    :goto_0
    return-void

    .line 1355
    .restart local p0
    :pswitch_0
    iget-object v0, p0, Lcom/philzhu/www/ddz/GameScreen;->world:Lcom/philzhu/www/ddz/World;

    const/4 v1, 0x0

    invoke-virtual {v0, v1}, Lcom/philzhu/www/ddz/World;->call(I)V

    goto :goto_0

    .line 1358
    :pswitch_1
    iget-object v0, p0, Lcom/philzhu/www/ddz/GameScreen;->world:Lcom/philzhu/www/ddz/World;

    const/4 v1, 0x1

    invoke-virtual {v0, v1}, Lcom/philzhu/www/ddz/World;->call(I)V

    goto :goto_0

    .line 1361
    :pswitch_2
    iget-object v0, p0, Lcom/philzhu/www/ddz/GameScreen;->world:Lcom/philzhu/www/ddz/World;

    const/4 v1, 0x2

    invoke-virtual {v0, v1}, Lcom/philzhu/www/ddz/World;->call(I)V

    goto :goto_0

    .line 1364
    :pswitch_3
    iget-object v0, p0, Lcom/philzhu/www/ddz/GameScreen;->world:Lcom/philzhu/www/ddz/World;

    const/4 v1, 0x3

    invoke-virtual {v0, v1}, Lcom/philzhu/www/ddz/World;->call(I)V

    goto :goto_0

    .line 1367
    :pswitch_4
    iget-object v0, p0, Lcom/philzhu/www/ddz/GameScreen;->world:Lcom/philzhu/www/ddz/World;

    invoke-virtual {v0}, Lcom/philzhu/www/ddz/World;->pass()V

    goto :goto_0

    .line 1370
    :pswitch_5
    sget-object v0, Lcom/philzhu/www/ddz/Assets;->rechoose:Lcom/philzhu/www/framework/Sound;

    invoke-static {v0}, Lcom/philzhu/www/ddz/Assets;->playSound(Lcom/philzhu/www/framework/Sound;)V

    .line 1371
    iget-object v0, p0, Lcom/philzhu/www/ddz/GameScreen;->world:Lcom/philzhu/www/ddz/World;

    invoke-virtual {v0}, Lcom/philzhu/www/ddz/World;->reChoose()V

    goto :goto_0

    .line 1374
    :pswitch_6
    iget-object v0, p0, Lcom/philzhu/www/ddz/GameScreen;->world:Lcom/philzhu/www/ddz/World;

    invoke-virtual {v0}, Lcom/philzhu/www/ddz/World;->getTips()V

    goto :goto_0

    .line 1377
    :pswitch_7
    iget-object v0, p0, Lcom/philzhu/www/ddz/GameScreen;->world:Lcom/philzhu/www/ddz/World;

    invoke-virtual {v0}, Lcom/philzhu/www/ddz/World;->putOutCards()V

    goto :goto_0

    .line 1380
    :pswitch_8
    iget-object v0, p0, Lcom/philzhu/www/ddz/GameScreen;->game:Lcom/philzhu/www/framework/Game;

    new-instance v1, Lcom/philzhu/www/ddz/ChooseLevelScreen;

    iget-object v2, p0, Lcom/philzhu/www/ddz/GameScreen;->game:Lcom/philzhu/www/framework/Game;

    invoke-direct {v1, v2}, Lcom/philzhu/www/ddz/ChooseLevelScreen;-><init>(Lcom/philzhu/www/framework/Game;)V

    invoke-interface {v0, v1}, Lcom/philzhu/www/framework/Game;->setScreen(Lcom/philzhu/www/framework/Screen;)V

    goto :goto_0

    .line 1383
    :pswitch_9
    invoke-direct {p0}, Lcom/philzhu/www/ddz/GameScreen;->nextGame()V

    goto :goto_0

    .line 1386
    :pswitch_a
    sget-object v0, Lcom/philzhu/www/ddz/Assets;->chooseLevel:Lcom/philzhu/www/framework/Sound;

    invoke-static {v0}, Lcom/philzhu/www/ddz/Assets;->playSound(Lcom/philzhu/www/framework/Sound;)V

    .line 1387
    invoke-direct {p0}, Lcom/philzhu/www/ddz/GameScreen;->toggleKeeper()V

    goto :goto_0

    .line 1390
    :pswitch_b
    iget-object p0, p0, Lcom/philzhu/www/ddz/GameScreen;->game:Lcom/philzhu/www/framework/Game;

    .end local p0
    check-cast p0, Lcom/philzhu/www/framework/impl/AndroidGame;

    invoke-static {p0}, Lcom/philzhu/www/ads/AdsManager;->showOffers(Lcom/philzhu/www/framework/impl/AndroidGame;)V

    goto :goto_0

    .line 1393
    .restart local p0
    :pswitch_c
    invoke-static {}, Lcom/philzhu/www/ddz/Settings;->toggleSound()V

    goto :goto_0

    .line 1396
    :pswitch_d
    invoke-static {}, Lcom/philzhu/www/ddz/Settings;->toggleSound()V

    goto :goto_0

    .line 1352
    nop

    :pswitch_data_0
    .packed-switch 0x1
        :pswitch_0
        :pswitch_1
        :pswitch_2
        :pswitch_3
        :pswitch_4
        :pswitch_5
        :pswitch_6
        :pswitch_7
        :pswitch_8
        :pswitch_9
        :pswitch_a
        :pswitch_b
        :pswitch_c
        :pswitch_d
    .end packed-switch
.end method

.method public present(F)V
    .locals 3
    .parameter "deltaTime"

    .prologue
    const/4 v2, 0x0

    .line 365
    iget-object v1, p0, Lcom/philzhu/www/ddz/GameScreen;->game:Lcom/philzhu/www/framework/Game;

    invoke-interface {v1}, Lcom/philzhu/www/framework/Game;->getGraphics()Lcom/philzhu/www/framework/Graphics;

    move-result-object v0

    .line 367
    .local v0, g:Lcom/philzhu/www/framework/Graphics;
    sget-object v1, Lcom/philzhu/www/ddz/Assets;->backgroundGame:Lcom/philzhu/www/framework/Pixmap;

    invoke-interface {v0, v1, v2, v2}, Lcom/philzhu/www/framework/Graphics;->drawPixmap(Lcom/philzhu/www/framework/Pixmap;II)V

    .line 369
    iget-object v1, p0, Lcom/philzhu/www/ddz/GameScreen;->state:Lcom/philzhu/www/ddz/GameScreen$GameState;

    sget-object v2, Lcom/philzhu/www/ddz/GameScreen$GameState;->Running:Lcom/philzhu/www/ddz/GameScreen$GameState;

    if-ne v1, v2, :cond_0

    .line 370
    invoke-direct {p0, p1}, Lcom/philzhu/www/ddz/GameScreen;->drawRunningUI(F)V

    .line 371
    :cond_0
    iget-object v1, p0, Lcom/philzhu/www/ddz/GameScreen;->state:Lcom/philzhu/www/ddz/GameScreen$GameState;

    sget-object v2, Lcom/philzhu/www/ddz/GameScreen$GameState;->ShowAICards:Lcom/philzhu/www/ddz/GameScreen$GameState;

    if-ne v1, v2, :cond_1

    .line 372
    invoke-direct {p0}, Lcom/philzhu/www/ddz/GameScreen;->drawShowAICardsUI()V

    .line 373
    :cond_1
    iget-object v1, p0, Lcom/philzhu/www/ddz/GameScreen;->state:Lcom/philzhu/www/ddz/GameScreen$GameState;

    sget-object v2, Lcom/philzhu/www/ddz/GameScreen$GameState;->GameOver:Lcom/philzhu/www/ddz/GameScreen$GameState;

    if-ne v1, v2, :cond_2

    .line 374
    invoke-direct {p0}, Lcom/philzhu/www/ddz/GameScreen;->drawGameOverUI()V

    .line 376
    :cond_2
    return-void
.end method

.method public resume()V
    .locals 0

    .prologue
    .line 1415
    iget-object p0, p0, Lcom/philzhu/www/ddz/GameScreen;->game:Lcom/philzhu/www/framework/Game;

    .end local p0
    check-cast p0, Lcom/philzhu/www/framework/impl/AndroidGame;

    invoke-static {p0}, Lcom/philzhu/www/ads/AdsManager;->getPoints(Lcom/philzhu/www/framework/impl/AndroidGame;)V

    .line 1416
    return-void
.end method

.method public update(F)V
    .locals 3
    .parameter "deltaTime"

    .prologue
    .line 231
    iget-object v1, p0, Lcom/philzhu/www/ddz/GameScreen;->game:Lcom/philzhu/www/framework/Game;

    invoke-interface {v1}, Lcom/philzhu/www/framework/Game;->getInput()Lcom/philzhu/www/framework/Input;

    move-result-object v1

    invoke-interface {v1}, Lcom/philzhu/www/framework/Input;->getTouchEvents()Ljava/util/List;

    move-result-object v0

    .line 232
    .local v0, touchEvents:Ljava/util/List;,"Ljava/util/List<Lcom/philzhu/www/framework/Input$TouchEvent;>;"
    iget-object v1, p0, Lcom/philzhu/www/ddz/GameScreen;->game:Lcom/philzhu/www/framework/Game;

    invoke-interface {v1}, Lcom/philzhu/www/framework/Game;->getInput()Lcom/philzhu/www/framework/Input;

    move-result-object v1

    invoke-interface {v1}, Lcom/philzhu/www/framework/Input;->getKeyEvents()Ljava/util/List;

    .line 234
    invoke-direct {p0, v0}, Lcom/philzhu/www/ddz/GameScreen;->updateCommonButtons(Ljava/util/List;)V

    .line 236
    iget-object v1, p0, Lcom/philzhu/www/ddz/GameScreen;->state:Lcom/philzhu/www/ddz/GameScreen$GameState;

    sget-object v2, Lcom/philzhu/www/ddz/GameScreen$GameState;->Running:Lcom/philzhu/www/ddz/GameScreen$GameState;

    if-ne v1, v2, :cond_0

    .line 237
    invoke-direct {p0, v0, p1}, Lcom/philzhu/www/ddz/GameScreen;->updateRunning(Ljava/util/List;F)V

    .line 238
    :cond_0
    iget-object v1, p0, Lcom/philzhu/www/ddz/GameScreen;->state:Lcom/philzhu/www/ddz/GameScreen$GameState;

    sget-object v2, Lcom/philzhu/www/ddz/GameScreen$GameState;->ShowAICards:Lcom/philzhu/www/ddz/GameScreen$GameState;

    if-ne v1, v2, :cond_1

    .line 239
    invoke-direct {p0, v0, p1}, Lcom/philzhu/www/ddz/GameScreen;->updateShowAICards(Ljava/util/List;F)V

    .line 240
    :cond_1
    iget-object v1, p0, Lcom/philzhu/www/ddz/GameScreen;->state:Lcom/philzhu/www/ddz/GameScreen$GameState;

    sget-object v2, Lcom/philzhu/www/ddz/GameScreen$GameState;->GameOver:Lcom/philzhu/www/ddz/GameScreen$GameState;

    if-ne v1, v2, :cond_2

    .line 241
    invoke-direct {p0, v0}, Lcom/philzhu/www/ddz/GameScreen;->updateGameOver(Ljava/util/List;)V

    .line 242
    :cond_2
    return-void
.end method

.method public upgrade()V
    .locals 7

    .prologue
    const/4 v6, 0x0

    const/4 v5, 0x1

    .line 1275
    iget-object v3, p0, Lcom/philzhu/www/ddz/GameScreen;->world:Lcom/philzhu/www/ddz/World;

    iget-object v3, v3, Lcom/philzhu/www/ddz/World;->currentPlayer:Lcom/philzhu/www/ddz/Player;

    invoke-virtual {v3}, Lcom/philzhu/www/ddz/Player;->getPlayerType()I

    move-result v2

    .line 1276
    .local v2, winnerIndex:I
    iget-object v3, p0, Lcom/philzhu/www/ddz/GameScreen;->world:Lcom/philzhu/www/ddz/World;

    iget v0, v3, Lcom/philzhu/www/ddz/World;->dizhuIndex:I

    .line 1277
    .local v0, dizhuIndex:I
    const/4 v1, 0x0

    .line 1284
    .local v1, playerMScore:I
    iget-object v3, p0, Lcom/philzhu/www/ddz/GameScreen;->world:Lcom/philzhu/www/ddz/World;

    iget v3, v3, Lcom/philzhu/www/ddz/World;->grade:I

    iget v4, p0, Lcom/philzhu/www/ddz/GameScreen;->multiple:I

    mul-int/2addr v3, v4

    iget-object v4, p0, Lcom/philzhu/www/ddz/GameScreen;->world:Lcom/philzhu/www/ddz/World;

    iget v4, v4, Lcom/philzhu/www/ddz/World;->zhaNum:I

    add-int/lit8 v4, v4, 0x1

    mul-int/2addr v3, v4

    iput v3, p0, Lcom/philzhu/www/ddz/GameScreen;->baseScore:I

    .line 1285
    if-ne v2, v5, :cond_0

    if-ne v0, v5, :cond_0

    .line 1287
    iget v3, p0, Lcom/philzhu/www/ddz/GameScreen;->baseScore:I

    mul-int/lit8 v3, v3, 0x2

    add-int/2addr v1, v3

    .line 1288
    iput-boolean v5, p0, Lcom/philzhu/www/ddz/GameScreen;->playerMWin:Z

    .line 1311
    :goto_0
    invoke-static {v1}, Lcom/philzhu/www/ddz/Settings;->addScore(I)V

    .line 1312
    sget v3, Lcom/philzhu/www/ddz/Settings;->exp:I

    add-int/lit8 v3, v3, 0x1

    const/16 v4, 0x19

    if-lt v3, v4, :cond_4

    .line 1314
    invoke-static {}, Lcom/philzhu/www/ddz/Settings;->addLevel()V

    .line 1315
    invoke-static {v6}, Lcom/philzhu/www/ddz/Settings;->setExp(I)V

    .line 1321
    :goto_1
    return-void

    .line 1290
    :cond_0
    if-ne v2, v5, :cond_1

    if-eq v0, v5, :cond_1

    .line 1292
    iget v3, p0, Lcom/philzhu/www/ddz/GameScreen;->baseScore:I

    add-int/2addr v1, v3

    .line 1293
    iput-boolean v5, p0, Lcom/philzhu/www/ddz/GameScreen;->playerMWin:Z

    goto :goto_0

    .line 1295
    :cond_1
    if-eq v2, v5, :cond_2

    if-eq v0, v2, :cond_2

    if-eq v0, v5, :cond_2

    .line 1297
    iget v3, p0, Lcom/philzhu/www/ddz/GameScreen;->baseScore:I

    add-int/2addr v1, v3

    .line 1298
    iput-boolean v5, p0, Lcom/philzhu/www/ddz/GameScreen;->playerMWin:Z

    goto :goto_0

    .line 1300
    :cond_2
    if-eq v2, v5, :cond_3

    if-ne v0, v5, :cond_3

    .line 1302
    iget v3, p0, Lcom/philzhu/www/ddz/GameScreen;->baseScore:I

    mul-int/lit8 v3, v3, 0x2

    sub-int/2addr v1, v3

    .line 1303
    iput-boolean v6, p0, Lcom/philzhu/www/ddz/GameScreen;->playerMWin:Z

    goto :goto_0

    .line 1307
    :cond_3
    iget v3, p0, Lcom/philzhu/www/ddz/GameScreen;->baseScore:I

    sub-int/2addr v1, v3

    .line 1308
    iput-boolean v6, p0, Lcom/philzhu/www/ddz/GameScreen;->playerMWin:Z

    goto :goto_0

    .line 1319
    :cond_4
    invoke-static {}, Lcom/philzhu/www/ddz/Settings;->addExp()V

    goto :goto_1
.end method
